]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++tools: Don't check --enable-default-pie.
authorKito Cheng <kito.cheng@sifive.com>
Tue, 27 May 2025 02:10:15 +0000 (10:10 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 2 Jun 2025 06:47:29 +0000 (14:47 +0800)
`--enable-default-pie` is an option to specify whether to enable
position-independent executables by default for `target`.

However c++tools is build for `host`, so it should just follow
`--enable-host-pie` option to determine whether to build with
position-independent executables or not.

NOTE:

I checked PR 98324 and build with same configure option
(`--enable-default-pie` and lto bootstrap) on x86-64 linux to make sure
it won't cause same problem.

c++tools/ChangeLog:

* configure.ac: Don't check `--enable-default-pie`.
* configure: Regen.

c++tools/configure
c++tools/configure.ac

index 1353479becaf4130efcde468fa3bda48d1f32fc7..6df4a2f0dfaed893da1ed9febe0da70372c29783 100755 (executable)
@@ -700,7 +700,6 @@ enable_option_checking
 enable_c___tools
 enable_maintainer_mode
 enable_checking
-enable_default_pie
 enable_host_pie
 enable_host_bind_now
 with_gcc_major_version_only
@@ -1335,7 +1334,6 @@ Optional Features:
                           enable expensive run-time checks. With LIST, enable
                           only specific categories of checks. Categories are:
                           yes,no,all,none,release.
-  --enable-default-pie    enable Position Independent Executable as default
   --enable-host-pie       build host code as PIE
   --enable-host-bind-now  link host code as BIND_NOW
 
@@ -2946,15 +2944,6 @@ $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
 
 fi
 
-# 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; PICFLAG=-fPIE
-else
-  PICFLAG=
-fi
-
-
 # Enable --enable-host-pie
 # Check whether --enable-host-pie was given.
 if test "${enable_host_pie+set}" = set; then :
index db34ee678e033b26dbafc8aa13ac5b0dd37a4190..8c4b72a8023a80e8f7f5bc7c646c67f454de50e5 100644 (file)
@@ -97,12 +97,6 @@ if test x$ac_assert_checking != x ; then
 [Define if you want assertions enabled.  This is a cheap check.])
 fi
 
-# Check whether --enable-default-pie was given.
-AC_ARG_ENABLE(default-pie,
-[AS_HELP_STRING([--enable-default-pie],
-                 [enable Position Independent Executable as default])],
-[PICFLAG=-fPIE], [PICFLAG=])
-
 # Enable --enable-host-pie
 AC_ARG_ENABLE(host-pie,
 [AS_HELP_STRING([--enable-host-pie],