diff options
author | Adrian Thurston <thurston@colm.net> | 2018-12-13 15:43:35 +0200 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-12-13 15:43:35 +0200 |
commit | fc1d61f4cab2260e90fcd468078eaa0d2046f372 (patch) | |
tree | e29f4f3321f86f7bdc479fb8bec84c50d7a7f31c /src | |
parent | 17991269d612fa8b1eb8ec6c43d072d813457a56 (diff) | |
download | colm-fc1d61f4cab2260e90fcd468078eaa0d2046f372.tar.gz |
use -Wl,--no-undefined only on linux
refs #253
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 6 |
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 \ |