commit e2e57a9bf7429ca39d1aa302150ccccc76d692f0
parent 78adbb65fa57badb35d8db8d16f6e1d6d642fc67
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Thu, 8 Apr 2021 12:33:59 +0000
noexecstack only works in LDFLAGS
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
@@ -341,7 +341,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
@@ -351,6 +350,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}"