Skip to content

Commit f80fb81

Browse files
committed
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
1 parent 6c9872f commit f80fb81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5730,8 +5730,8 @@ CFLAGS="${CFLAGS} ${CFLAGS_AFTER}"
57305730
LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}"
57315731

57325732
# Make a copy of CFLAGS/LDFLAGS without PIE options.
5733-
LDFLAGS_NOPIE=`echo "$LDFLAGS" | sed 's/ -pie//'`
5734-
CFLAGS_NOPIE=`echo "$CFLAGS" | sed 's/ -fPIE//'`
5733+
LDFLAGS_NOPIE=`echo "$LDFLAGS" | sed 's/^-pie //;s/ -pie//g'`
5734+
CFLAGS_NOPIE=`echo "$CFLAGS" | sed 's/^-fPIE //;s/ -fPIE//g'`
57355735
AC_SUBST([LDFLAGS_NOPIE])
57365736
AC_SUBST([CFLAGS_NOPIE])
57375737

0 commit comments

Comments
 (0)