libsecp256k1.pc returns incorrect ordering of libraries for static linking #569

issue pmienk opened this issue on October 25, 2018
  1. pmienk commented at 11:57 PM on October 25, 2018: contributor

    When gmp is detected and the intent is static linking, the invocation of pkg-config --libs --static libsecp256k1 returns -L/mnt/alpha/prefix/static/lib -lgmp -lsecp256k1. Note that the order of -l arguments is reversed to that needed for successful linking. While autotools use of libtool reorders this, other users of pkg-config run the risk of linker errors utilizing the current output.

  2. gmaxwell closed this on Feb 21, 2019

Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:52 UTC