From: Anders Kaseorg Date: Sun, 22 Aug 2010 07:20:58 +0000 (-0400) Subject: Catch undefined symbols at link time X-Git-Tag: 2.0~14 X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/commitdiff_plain/c5594b31f4d6e67fb08d9eb427f01f86d8ee5cac Catch undefined symbols at link time Signed-off-by: Anders Kaseorg --- diff --git a/Makefile.am b/Makefile.am index e67c2d5..a22eb6e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,12 +4,8 @@ libnss_nonlocal_la_SOURCES = \ nonlocal.h nsswitch-internal.h libnss_nonlocal_la_LDFLAGS = \ -version-info 2:0:0 \ - -export-symbols-regex '^_nss_nonlocal_' - -noinst_PROGRAMS = .linktest -_linktest_SOURCES = -_linktest_LDADD = libnss_nonlocal.la -_linktest_LDFLAGS = -nostdlib -entry=0 + -export-symbols-regex '^_nss_nonlocal_' \ + -no-undefined -Wl,-z,defs install-exec-hook: rm -f $(DESTDIR)$(libdir)/libnss_nonlocal.so