summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 592fc6a1f6..db67596f66 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1772,7 +1772,7 @@ then
int foo;
main () { return 0;}
EOF
- if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fPIE -Wl,z,relro -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
+ if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fPIE -Wl,-z,relro -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
then
samba_cv_fpie_relro=yes
else
@@ -1782,7 +1782,7 @@ EOF
])
if test x"${samba_cv_fpie_relro}" = x"yes"
then
- PIE_LDFLAGS="-pie -Wl,z,relro"
+ PIE_LDFLAGS="-pie -Wl,-z,relro"
fi
fi