From: Evangelos Foutras Date: Fri, 19 Apr 2013 21:17:08 +0000 (+0300) Subject: build-sys: prevent library underlinking X-Git-Tag: v203~126 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=9d2d0fe1e3f28a639c26b62391f79cfd1450d91b build-sys: prevent library underlinking Underlinking can cause subtle bugs like the recent issue with libnss_myhostname (which was fixed in commit 1e335af7). --- diff --git a/configure.ac b/configure.ac index 517378394..ce02ff6f8 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])