summaryrefslogtreecommitdiff
path: root/user/gnucobol/keep-debug-flags.patch
blob: 40c1888026f1134cff7d293d319949d8d5886001 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- gnucobol-3.0-rc1/configure.ac	2018-04-22 22:00:19.000000000 +0000
+++ gnucobol-3.0-rc1/configure.ac	2019-06-28 12:09:56.160772995 +0000
@@ -1216,40 +1216,6 @@
 fi
 
 
-# Include CFLAGS / CPPFLAGS in COB_CFLAGS without optimization/debug options.
-
-if test "x$CFLAGS" != "x"; then
-	cob_temp_flags="$CFLAGS"
-else
-	cob_temp_flags=""
-fi
-if test "x$CPPFLAGS" != "x"; then
-	if test "x$cob_temp_flags" != "x"; then
-		cob_temp_flags="$CPPFLAGS $cob_temp_flags"
-	else
-		cob_temp_flags="$CPPFLAGS"
-	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/@<:@+-@:>@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-strong//'`
-	cob_temp_flags=`echo "$cob_temp_flags" | sed -e 's/-fstack-protector-all//'`
-	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/^ //'`
-fi
-
-if test "x$cob_temp_flags" != "x"; then
-	COB_CFLAGS="$COB_CFLAGS $cob_temp_flags"
-fi
-unset cob_temp_flags
-
-
 # Special stuff
 
 AH_VERBATIM([_XOPEN_SOURCE_EXTENDED],