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 diff --git a/configure.ac b/configure.ac index 8727187..32ea3aa 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ AH_TOP([#define LIBSECP256K1_CONFIG_H]) AH_BOTTOM([#endif /*LIBSECP256K1_CONFIG_H*/]) AM_INIT_AUTOMAKE([foreign subdir-objects]) -LT_INIT +LT_INIT([win32-dll]) # Make the compilation flags quiet unless V=1 is used. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])