SHA256
1
0
forked from pool/gnu-cobol
gnu-cobol/gnucobol-CFLAGS.patch

29 lines
1.5 KiB
Diff
Raw Normal View History

Index: gnucobol-2.2/configure
===================================================================
--- gnucobol-2.2.orig/configure
+++ gnucobol-2.2/configure
@@ -18412,7 +18412,7 @@ fi
unset enable_cflags_setting
if test "$enable_debug" != "yes" -a "x$CFLAGS" != "x"; then
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-g3//' -e 's/-g//' -e 's/^ //' -e 's/ $//'`
+ CFLAGS=`echo "$CFLAGS" | sed -e 's/-g3//' -e 's/-g //' -e 's/^ //' -e 's/ $//'`
fi
if test "$COB_USES_GCC" = "yes"; then
@@ -18516,12 +18516,12 @@ if test "x$CPPFLAGS" != "x"; then
fi
fi
if test "x$cob_temp_flags" != "x"; then
- cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-g3//' -e 's/-g//' -e 's/ $//' -e 's/^ //'`
+ cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-g3//' -e 's/-g //' -e 's/ $//' -e 's/^ //'`
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/[+-]O[0-9s]//' -e 's/ $//' -e 's/^ //'`
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-O//' -e 's/ $//' -e 's/^ //'`
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-fmessage-length=0//'`
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-D_FORTIFY_SOURCE=.//'`
- cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-fstack-protector//'`
+ cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-fstack-protector //'`
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-funwind-tables//'`
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-fasynchronous-unwind-tables//'`
cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/ */ /g' -e 's/ $//' -e 's/^ //'`