From: Damien Miller Date: Wed, 2 Apr 2025 22:10:19 +0000 (+1100) Subject: remove all instances of -pie from LDFLAGS X-Git-Tag: V_10_0_P1~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f80fb819e5521e13f167edbcc3eed66e22ad0c2a;p=thirdparty%2Fopenssh-portable.git remove all instances of -pie from LDFLAGS Previously only the first instance of this flag was removed. Unbreaks build on OpenSUSE Tumbleweed. Patch from Antonio Larrosa --- diff --git a/configure.ac b/configure.ac index bc2c25896..ee77a0484 100644 --- a/configure.ac +++ b/configure.ac @@ -5730,8 +5730,8 @@ CFLAGS="${CFLAGS} ${CFLAGS_AFTER}" LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}" # Make a copy of CFLAGS/LDFLAGS without PIE options. -LDFLAGS_NOPIE=`echo "$LDFLAGS" | sed 's/ -pie//'` -CFLAGS_NOPIE=`echo "$CFLAGS" | sed 's/ -fPIE//'` +LDFLAGS_NOPIE=`echo "$LDFLAGS" | sed 's/^-pie //;s/ -pie//g'` +CFLAGS_NOPIE=`echo "$CFLAGS" | sed 's/^-fPIE //;s/ -fPIE//g'` AC_SUBST([LDFLAGS_NOPIE]) AC_SUBST([CFLAGS_NOPIE])