summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:23 +0000
commit13bd344c018259a05375836914b011cbff12add0 (patch)
tree330f989ee932cac283d65a8b04a7d6517d5c6038 /configure
parentf5aa016d77fbff5d856f0c495118a3b57b0ad2f9 (diff)
downloads6-linux-init-13bd344c018259a05375836914b011cbff12add0.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 04af07b..5f4eb6e 100755
--- a/configure
+++ b/configure
@@ -360,7 +360,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
@@ -371,6 +370,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}"