about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:52 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:52 +0000
commitc1ee697ec2d8eb83c9a545cae20c75f1ee38fcf6 (patch)
tree3d65cf43a622200540e20883b9bdc8914655dced /configure
parenteafbb286690ed915442712bfd592719fa465d167 (diff)
downloaddnsfunnel-c1ee697ec2d8eb83c9a545cae20c75f1ee38fcf6.tar.gz
dnsfunnel-c1ee697ec2d8eb83c9a545cae20c75f1ee38fcf6.tar.xz
dnsfunnel-c1ee697ec2d8eb83c9a545cae20c75f1ee38fcf6.zip
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 7dffc35..d51b4b6 100755
--- a/configure
+++ b/configure
@@ -332,7 +332,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
@@ -342,6 +341,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}"