From 12a028383976eb6ea11d297e95598b0e44334af4 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 11 Nov 2019 23:11:52 +0000 Subject: [PATCH] configury: default to --enable-pie On fedora rawhide, -fpic/-fpie flags are sneaking in all over the place, so plain configure/make stap builds can break if we don't build everything that way too. So flip around --enable-pie to default-on. Sorry, PR9922 (2009). --- configure | 4 ++-- configure.ac | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 4290f6627..ff42ae208 100755 --- a/configure +++ b/configure @@ -10148,13 +10148,13 @@ fi -# Compiling without fPIE by default (see PR 9922) +# Compiling with fPIE by default (but see PR 9922) # Check whether --enable-pie was given. if test "${enable_pie+set}" = set; then : enableval=$enable_pie; fi -if test "x$enable_pie" == xyes; then : +if test "x$enable_pie" != xno; then : PIECFLAGS='-fPIE' PIECXXFLAGS='-fPIE' diff --git a/configure.ac b/configure.ac index 932d40445..e96cf66cc 100644 --- a/configure.ac +++ b/configure.ac @@ -218,10 +218,10 @@ dnl AC_MSG_NOTICE([using ld.gold to link]) dnl fi -# Compiling without fPIE by default (see PR 9922) +# Compiling with fPIE by default (but see PR 9922) AC_ARG_ENABLE([pie], [AS_HELP_STRING([--enable-pie], [enable position-independent-executable])]) -AS_IF([test "x$enable_pie" == xyes],[ +AS_IF([test "x$enable_pie" != xno],[ PIECFLAGS='-fPIE' PIECXXFLAGS='-fPIE' PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now' -- 2.43.5