about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-03-02 14:44:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-03-02 14:44:28 +0100
commit2d6ab5df3b675e96ee587ae6a8c2ce004c6b1ba9 (patch)
tree1106f82144a37c4e26b4f004208b6a76d460eedd /Makeconfig
parent9090848d0607e93fb08a1d68d9f263846ee33f02 (diff)
downloadglibc-2d6ab5df3b675e96ee587ae6a8c2ce004c6b1ba9.tar.gz
glibc-2d6ab5df3b675e96ee587ae6a8c2ce004c6b1ba9.tar.xz
glibc-2d6ab5df3b675e96ee587ae6a8c2ce004c6b1ba9.zip
Document and fix --enable-bind-now [BZ #21015]
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index 97a15b569e..1c815113b9 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -386,6 +386,13 @@ LDFLAGS.so += $(hashstyle-LDFLAGS)
 LDFLAGS-rtld += $(hashstyle-LDFLAGS)
 endif
 
+# If lazy relocations are disabled, add the -z now flag.  Use
+# LDFLAGS-lib.so instead of LDFLAGS.so, to avoid adding the flag to
+# test modules.
+ifeq ($(bind-now),yes)
+LDFLAGS-lib.so += -Wl,-z,now
+endif
+
 # Command to run after every final link (executable or shared object).
 # This is invoked with $(call after-link,...), so it should operate on
 # the file $1.  This can be set to do some sort of post-processing on