summaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index 349f94d9ac..5a1aebccff 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -407,9 +407,11 @@ LDFLAGS.so += $(combreloc-LDFLAGS)
LDFLAGS-rtld += $(combreloc-LDFLAGS)
endif
+ifeq (yes,$(have-z-relro))
relro-LDFLAGS = -Wl,-z,relro
LDFLAGS.so += $(relro-LDFLAGS)
LDFLAGS-rtld += $(relro-LDFLAGS)
+endif
ifeq (yes,$(have-hash-style))
# For the time being we unconditionally use 'both'. At some time we