summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEvangelos Foutras <evangelos@foutrelis.com>2013-04-20 00:17:08 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-04-19 18:15:45 -0400
commit9d2d0fe1e3f28a639c26b62391f79cfd1450d91b (patch)
tree09278944e34d972e830b096e4e174566dcb1a14d /configure.ac
parent1e335af70f29d1a1e9c132338aa35b8971934441 (diff)
build-sys: prevent library underlinking
Underlinking can cause subtle bugs like the recent issue with libnss_myhostname (which was fixed in commit 1e335af7).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5173783948..ce02ff6f80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,7 @@ AC_SUBST([OUR_CPPFLAGS], $with_cppflags)
CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
-Wl,--as-needed \
+ -Wl,--no-undefined \
-Wl,--gc-sections \
-Wl,-z,relro \
-Wl,-z,now])