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
- gmaxwell closed this on Feb 21, 2019
Contributors