From 6540778e7827fbf3b2cbbec8187b6b40376dcd46 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Wed, 5 Jun 2019 15:31:10 +0200 Subject: [PATCH] use -no-undefined flag with libtool We need to tell libtool that we expect all symbols to be defined when creating the library. Otherwise, on platforms that do not support undefined symbols, libtool does create the static library only. --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index 215a434..5d56cbc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,6 +17,7 @@ LDFLAGS += -version-info $(B2_LIBRARY_VERSION) lib_LTLIBRARIES = libb2.la libb2_la_LIBADD = # -lgomp -lpthread +libb2_la_LDFLAGS = -no-undefined libb2_la_CPPFLAGS = -DSUFFIX= \ $(LTDLINCL) \ ${top_builddir}/src/