]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
remove all instances of -pie from LDFLAGS
authorDamien Miller <djm@mindrot.org>
Wed, 2 Apr 2025 22:10:19 +0000 (09:10 +1100)
committerDamien Miller <djm@mindrot.org>
Wed, 2 Apr 2025 22:10:19 +0000 (09:10 +1100)
Previously only the first instance of this flag was removed.
Unbreaks build on OpenSUSE Tumbleweed. Patch from Antonio Larrosa

configure.ac

index bc2c25896d9a24b9101f02ffcaa52b3a6565a9da..ee77a0484b19828e2533c4dd6d679263291d27bd 100644 (file)
@@ -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])