summaryrefslogtreecommitdiff
path: root/c++tools/configure
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-12-23 04:50:00 -0800
committerNathan Sidwell <nathan@acm.org>2020-12-23 04:50:00 -0800
commit544f477536010f055c26bc959b18fccf67902750 (patch)
tree3fd179013a8e62c479043edb1252d04787b2bd3f /c++tools/configure
parent077fefbfaec6838568a15e74e9e2adecce693aef (diff)
downloadgcc-544f477536010f055c26bc959b18fccf67902750.tar.gz
c++tools: Fix PIE [PR 98324]
This adds --enable-default-pie support to c++tools, so that the sample server is build -fPIE if requested. PR bootstrap/98324 c++tools/ * Makefile.in: Add FLAGPIE. * configure.ac: Add --enable-default-pie support. * configure: Rebuilt.
Diffstat (limited to 'c++tools/configure')
-rwxr-xr-xc++tools/configure13
1 files changed, 13 insertions, 0 deletions
diff --git a/c++tools/configure b/c++tools/configure
index e32558e936a..89441f50d1d 100755
--- a/c++tools/configure
+++ b/c++tools/configure
@@ -629,6 +629,7 @@ CPP
ac_ct_CC
CFLAGS
CC
+PIEFLAG
MAINTAINER
CXX_AUX_TOOLS
AUTOHEADER
@@ -699,6 +700,7 @@ ac_user_opts='
enable_option_checking
enable_c___tools
enable_maintainer_mode
+enable_default_pie
with_gcc_major_version_only
'
ac_precious_vars='build_alias
@@ -1329,6 +1331,7 @@ Optional Features:
--enable-maintainer-mode
enable maintainer mode. Add rules to rebuild
configurey bits
+ --enable-default-pie enable Position Independent Executable as default
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -2939,6 +2942,16 @@ $as_echo "$maintainer_mode" >&6; }
test "$maintainer_mode" = yes && MAINTAINER=yes
+# Check whether --enable-default-pie was given.
+# Check whether --enable-default-pie was given.
+if test "${enable_default_pie+set}" = set; then :
+ enableval=$enable_default_pie; PIEFLAG=-fPIE
+else
+ PIEFLAG=
+fi
+
+
+
# Check if O_CLOEXEC is defined by fcntl
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'