You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./autogen.sh
$ ./configure
$ make libsecp256k1.la
However, it should fail like that:
$ ./autogen.sh
$ ./configure LDFLAGS="-Wl,--no-undefined"
$ make libsecp256k1.la
CC src/libsecp256k1_la-secp256k1.lo
CC src/libsecp256k1_precomputed_la-precomputed_ecmult.lo
CC src/libsecp256k1_precomputed_la-precomputed_ecmult_gen.lo
CCLD libsecp256k1_precomputed.la
CCLD libsecp256k1.la
/usr/bin/ld: src/.libs/libsecp256k1_la-secp256k1.o: in function `secp256k1_context_randomize':
/home/hebasto/git/secp256k1/secp256k1/src/secp256k1.c:770:(.text+0xee01): undefined reference to `undefined_function'
collect2: error: ld returned 1 exit status
make: *** [Makefile:1020: libsecp256k1.la] Error 1
The text was updated successfully, but these errors were encountered:
Consider the following diff:
It compiles fine:
However, it should fail like that:
The text was updated successfully, but these errors were encountered: