On Jun 09 2026, Sam James wrote:
> diff --git a/c++tools/configure b/c++tools/configure
> index 6df4a2f0dfae..d6c32162f762 100755
> --- a/c++tools/configure
> +++ b/c++tools/configure
> @@ -2947,17 +2947,28 @@ fi
> # Enable --enable-host-pie
> # Check whether --enable-host-pie was given.
> if test "${enable_host_pie+set}" = set; then :
> - enableval=$enable_host_pie; PICFLAG=-fPIE; LD_PICFLAG=-pie
> + enableval=$enable_host_pie; enable_host_pie=$enableval
As you can see here, the assignment to enable_host_pie is redundant,
> diff --git a/c++tools/configure.ac b/c++tools/configure.ac
> index 3611ae6b97bf..df550c8ea2f6 100644
> --- a/c++tools/configure.ac
> +++ b/c++tools/configure.ac
> @@ -101,14 +101,21 @@ fi
> AC_ARG_ENABLE(host-pie,
> [AS_HELP_STRING([--enable-host-pie],
> [build host code as PIE])],
> -[PICFLAG=-fPIE; LD_PICFLAG=-pie], [])
> +[enable_host_pie=$enableval], [enable_host_pie=no])
which means the third argument should be left empty.
--
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."