summaryrefslogtreecommitdiff
blob: b023a9f3088c3499962cddcc9e194c9ec0e02d58 (plain)
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
diff -Nuar --exclude '*~' drizzle-2010.03.1412/m4.orig/pandora_optimize.m4 drizzle-2010.03.1412/m4//pandora_optimize.m4
--- drizzle-2010.03.1412/m4.orig/pandora_optimize.m4	2010-03-30 13:02:33.000000000 -0700
+++ drizzle-2010.03.1412/m4//pandora_optimize.m4	2010-04-17 09:51:53.000000000 -0700
@@ -22,10 +22,9 @@
     dnl with using AC_CC_STD_C99 above
     CC="${CC} -std=gnu99"
 
-    AM_CPPFLAGS="-ggdb3 ${AM_CPPFLAGS}"
-
     DEBUG_CFLAGS="-O0"
     DEBUG_CXXFLAGS="-O0"
+    DEBUG_CPPFLAGS="-ggdb3"
 
     OPTIMIZE_CFLAGS="-O3"
     OPTIMIZE_CXXFLAGS="-O3"
@@ -35,9 +34,8 @@
     dnl with using AC_CC_STD_C99 above
     CC="${CC} -std=c99"
 
-    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
-
     DEBUG_CFLAGS="-O0"
+    DEBUG_CPPFLAGS="-g"
     DEBUG_CXXFLAGS="-O0"
 
     OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static"
@@ -70,10 +68,12 @@
   AS_IF([test "$with_debug" = "yes"],[
     # Debugging. No optimization.
     AM_CFLAGS="${AM_CFLAGS} ${DEBUG_CFLAGS} -DDEBUG"
+    AM_CPPFLAGS="${AM_CPPFLAGS} ${DEBUG_CPPFLAGS} -DDEBUG"
     AM_CXXFLAGS="${AM_CXXFLAGS} ${DEBUG_CXXFLAGS} -DDEBUG"
   ],[
     # Optimized version. No debug
     AM_CFLAGS="${AM_CFLAGS} ${OPTIMIZE_CFLAGS}"
+    AM_CPPFLAGS="${AM_CPPFLAGS} ${OPTIMIZE_CPPFLAGS}"
     AM_CXXFLAGS="${AM_CXXFLAGS} ${OPTIMIZE_CXXFLAGS}"
   ])
 ])