summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:10 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:10 +0000
commite043d793cfedd0df91d9a0a5c7cb82687a7a0df7 (patch)
treef54ff59576d1e05d033419ef729f2eae16387b83 /configure
parent5e009777db90c9e69e62115c29eafff910d43a0d (diff)
downloads6-rc-e043d793cfedd0df91d9a0a5c7cb82687a7a0df7.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 2655188..53b7c72 100755
--- a/configure
+++ b/configure
@@ -336,7 +336,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
@@ -346,6 +345,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}"