summaryrefslogtreecommitdiff
path: root/lang/hugs/patches/patch-ac
blob: 7e7f13cb49f721c640ca9d98de0a7596cccbb8ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ac,v 1.2 2001/06/21 02:38:13 jlam Exp $

--- configure.orig	Tue Feb 29 05:29:00 2000
+++ configure	Tue May 22 02:48:58 2001
@@ -3628,8 +3628,8 @@
   -Wno-parentheses \
   "
 
-CFLAGS="-g"
-OPTFLAGS="-O2"
+test -z "$CFLAGS" && CFLAGS="-g"
+test -z "$OPTFLAGS" && OPTFLAGS="-O2"
 
 if test "$enable_lint" = yes; then
     if test "$ac_cv_prog_CC" = "gcc"; then
@@ -3645,6 +3645,7 @@
     fi
 
 if test "$enable_debug" = yes; then
+    CFLAGS="$CFLAGS -g"
     OPTFLAGS=""
 else
     DEBUGFLAGS=""