summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:27 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:27 +0000
commit9f01d13dfa7ba8a6eb6d9438002d0ba001dc5dee (patch)
tree679e4f42919ee008e1fb38d65f9e85689f7b292d
parentd62aec3ffabf77655c6bd028cf45213e034522fb (diff)
downloads6-dns-9f01d13dfa7ba8a6eb6d9438002d0ba001dc5dee.tar.xz
noexecstack only works in LDFLAGS
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 1e8a05f..8915000 100755
--- a/configure
+++ b/configure
@@ -333,7 +333,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
@@ -343,6 +342,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}"