summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-12-13 15:43:35 +0200
committerAdrian Thurston <thurston@colm.net>2018-12-13 15:43:35 +0200
commitfc1d61f4cab2260e90fcd468078eaa0d2046f372 (patch)
treee29f4f3321f86f7bdc479fb8bec84c50d7a7f31c /src
parent17991269d612fa8b1eb8ec6c43d072d813457a56 (diff)
downloadcolm-fc1d61f4cab2260e90fcd468078eaa0d2046f372.tar.gz
use -Wl,--no-undefined only on linux
refs #253
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 12497176..a9b48a70 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -42,7 +42,11 @@ lib_LTLIBRARIES = libcolm.la
noinst_LIBRARIES = libprog.a
libcolm_la_SOURCES = $(RUNTIME_SRC)
-libcolm_la_LDFLAGS = -release ${PACKAGE_VERSION}
+libcolm_la_LDFLAGS = -release ${PACKAGE_VERSION} -no-undefined
+
+if LINKER_NO_UNDEFINED
+libcolm_la_LDFLAGS += -Wl,--no-undefined
+endif
common_CFLAGS = \
-Wall \