]> Git Repo - VerusCoin.git/commitdiff
configure --enable-debug changes
authorGavin Andresen <[email protected]>
Mon, 13 Jul 2015 18:28:03 +0000 (14:28 -0400)
committerJack Grigg <[email protected]>
Fri, 3 Mar 2017 18:57:19 +0000 (10:57 -0800)
Three changes to how configure --enable-debug behaves:

1. Preserve user-passed CXXFLAGS/CFLAGS
2. Compile with -DDEBUG_LOCKORDER
3. Add -DDEBUG -DDEBUG_LOCKORDER to CPPFLAGS (since they are preprocessor options)

configure.ac

index 54d92c238610eaad9f30f08d4e2a0ea2709c1204..84c66624b1ad0c89a21887bb20c38ddac3280377 100644 (file)
@@ -178,12 +178,13 @@ AC_ARG_ENABLE([debug],
     [enable_debug=no])
 
 if test "x$enable_debug" = xyes; then
+    CPPFLAGS="$CPPFLAGS -DDEBUG -DDEBUG_LOCKORDER"
     if test "x$GCC" = xyes; then
-        CFLAGS="-g3 -O0 -DDEBUG"
+        CFLAGS="$CFLAGS -g3 -O0"
     fi
 
     if test "x$GXX" = xyes; then
-        CXXFLAGS="-g3 -O0 -DDEBUG"
+        CXXFLAGS="$CXXFLAGS -g3 -O0"
     fi
 fi
 
This page took 0.023559 seconds and 4 git commands to generate.