about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:14 +0000
commita2803fb6353b807580c3c4b1b80bb8652b5df6a9 (patch)
treee7705f0639a46ee565ac9a85475edc92474be7ea
parent8a3b18c61d42d822cc25c74d5c04c53c7b053643 (diff)
downloads6-portable-utils-a2803fb6353b807580c3c4b1b80bb8652b5df6a9.tar.gz
s6-portable-utils-a2803fb6353b807580c3c4b1b80bb8652b5df6a9.tar.xz
s6-portable-utils-a2803fb6353b807580c3c4b1b80bb8652b5df6a9.zip
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}"