Blame 0009-build-sys-prevent-library-underlinking.patch
|
|
5f4d81a |
From 9d2d0fe1e3f28a639c26b62391f79cfd1450d91b Mon Sep 17 00:00:00 2001
|
|
|
5f4d81a |
From: Evangelos Foutras <evangelos@foutrelis.com>
|
|
|
5f4d81a |
Date: Sat, 20 Apr 2013 00:17:08 +0300
|
|
|
5f4d81a |
Subject: [PATCH] build-sys: prevent library underlinking
|
|
|
5f4d81a |
|
|
|
5f4d81a |
Underlinking can cause subtle bugs like the recent issue with
|
|
|
5f4d81a |
libnss_myhostname (which was fixed in commit 1e335af7).
|
|
|
5f4d81a |
---
|
|
|
5f4d81a |
configure.ac | 1 +
|
|
|
5f4d81a |
1 file changed, 1 insertion(+)
|
|
|
5f4d81a |
|
|
|
5f4d81a |
diff --git a/configure.ac b/configure.ac
|
|
|
5f4d81a |
index 5173783..ce02ff6 100644
|
|
|
5f4d81a |
--- a/configure.ac
|
|
|
5f4d81a |
+++ b/configure.ac
|
|
|
5f4d81a |
@@ -144,6 +144,7 @@ AC_SUBST([OUR_CPPFLAGS], $with_cppflags)
|
|
|
5f4d81a |
|
|
|
5f4d81a |
CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
|
|
|
5f4d81a |
-Wl,--as-needed \
|
|
|
5f4d81a |
+ -Wl,--no-undefined \
|
|
|
5f4d81a |
-Wl,--gc-sections \
|
|
|
5f4d81a |
-Wl,-z,relro \
|
|
|
5f4d81a |
-Wl,-z,now])
|
|
|
5f4d81a |
--
|
|
|
5f4d81a |
1.8.2.1
|
|
|
5f4d81a |
|