From c0cd7de6d4e497c0e678f7098079727188e81de8 Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 2 Dec 2021 11:48:43 +0800 Subject: [PATCH] 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 --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index aa8014f..6c9868c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -74,6 +74,7 @@ endif libsecp256k1_la_SOURCES = src/secp256k1.c libsecp256k1_la_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src $(SECP_INCLUDES) libsecp256k1_la_LIBADD = $(SECP_LIBS) $(COMMON_LIB) +libsecp256k1_la_LDFLAGS = -no-undefined if VALGRIND_ENABLED libsecp256k1_la_CPPFLAGS += -DVALGRIND