summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:07 +0000
commite8257abeb470f0e88e616b87bb2f76809507dc41 (patch)
treeedb1c45562f1aeb77c691b006fef0f6fbc9e95f1 /configure
parent07bfb473922b873b58beb5e075776cf2897da92f (diff)
downloadutmps-e8257abeb470f0e88e616b87bb2f76809507dc41.tar.xz
noexecstack only works in LDFLAGS
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 954dccf..0b972f2 100755
--- a/configure
+++ b/configure
@@ -348,7 +348,6 @@ tryflag CFLAGS -fomit-frame-pointer
tryflag CFLAGS_AUTO -fno-exceptions
tryflag CFLAGS_AUTO -fno-unwind-tables
tryflag CFLAGS_AUTO -fno-asynchronous-unwind-tables
-tryflag CFLAGS_AUTO -Wa,--noexecstack
tryflag CPPFLAGS_AUTO -Werror=implicit-function-declaration
tryflag CPPFLAGS_AUTO -Werror=implicit-int
tryflag CPPFLAGS_AUTO -Werror=pointer-sign
@@ -358,6 +357,7 @@ tryflag CFLAGS_AUTO -fdata-sections
tryldflag LDFLAGS_AUTO -Wl,--sort-section=alignment
tryldflag LDFLAGS_AUTO -Wl,--sort-common
+tryldflag LDFLAGS_AUTO -Wl,-z,noexecstack
CPPFLAGS_AUTO="${CPPFLAGS_AUTO}${addincpath}"