Skip to content

Commit c0cd7de

Browse files
committed
build: add -no-undefined to libtool LDFLAGS
Instruct libtool to not allow undefined symbols when linking a shared library. See: https://autotools.io/libtool/windows.html https://www.gnu.org/software/libtool/manual/libtool.html#LT_005fINIT https://www.gnu.org/software/gnulib/manual/html_node/Libtool-and-Windows.html
1 parent fe32a79 commit c0cd7de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ endif
7474
libsecp256k1_la_SOURCES = src/secp256k1.c
7575
libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src $(SECP_INCLUDES)
7676
libsecp256k1_la_LIBADD = $(SECP_LIBS) $(COMMON_LIB)
77+
libsecp256k1_la_LDFLAGS = -no-undefined
7778

7879
if VALGRIND_ENABLED
7980
libsecp256k1_la_CPPFLAGS += -DVALGRIND

0 commit comments

Comments
 (0)