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.
libsecp256k1.pc returns incorrect ordering of libraries for static linking #569
issue pmienk opened this issue on October 25, 2018-
pmienk commented at 11:57 PM on October 25, 2018: contributor
- pmienk cross-referenced this on Oct 25, 2018 from issue Correct order of libs returned on pkg-config --libs --static libsecp2… by pmienk
- gmaxwell closed this on Feb 21, 2019