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