gnu-cobol/gnucobol-CFLAGS.patch
OBS User mrdocs 3d6350e285 Accepting request 522453 from home:alois:branches:devel:languages:misc
- Update to version 2.2 (see NEWS or ChangeLog)
- Switched license to GPL-3.0+/LGPL-3.0+
- Updated source URL and homepage on account of being accepted
  into the GNU Project
- Added gnucobol-CFLAGS.patch
- Dropped types.diff (apparently no longer necessary)

OBS-URL: https://build.opensuse.org/request/show/522453
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/gnu-cobol?expand=0&rev=5
2017-09-14 01:11:49 +00:00

29 lines
1.5 KiB
Diff

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/^ //'`