summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:33 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:33 +0000
commit8af27fc24148feab7847e0514519f691874f760d (patch)
treef5cad285b18c88793de35f7ff7f3c91bc0a819d9
parent02ba4310747629ab0c552673d504855f746c584f (diff)
downloads6-networking-8af27fc24148feab7847e0514519f691874f760d.tar.xz
noexecstack only works in LDFLAGS
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index ebab51a..46401d3 100755
--- a/configure
+++ b/configure
@@ -350,7 +350,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
@@ -361,6 +360,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}"