File doc++-4.3.10_missing_cxxflags.patch of Package doc++

Index: configure
===================================================================
--- configure.orig	2002-12-22 16:39:27.000000000 +0100
+++ configure	2007-11-13 17:13:58.883704452 +0100
@@ -4764,7 +4764,7 @@ fi
 done
 
 
-CXXFLAGS=""
+CXXFLAGS="${CXXFLAGS}"
 
 # Check whether --enable-debug or --disable-debug was given.
 if test "${enable_debug+set}" = set; then
@@ -4774,7 +4774,7 @@ cat >>confdefs.h <<\_ACEOF
 #define DEBUG 1
 _ACEOF
 
-    CXXFLAGS="-g"
+    CXXFLAGS="${CXXFLAGS} -g"
 
 fi;
 
Index: configure.in
===================================================================
--- configure.in.orig	2002-12-22 16:37:30.000000000 +0100
+++ configure.in	2007-11-13 17:14:26.609369189 +0100
@@ -35,13 +35,13 @@ dnl Checks for library functions.
 AC_CHECK_FUNCS(getopt_long strdup strstr)
 
 dnl Set compiler flags
-CXXFLAGS=""
+CXXFLAGS="${CXXFLAGS}"
 
 dnl Checks if we are going to enable debugging
 AC_ARG_ENABLE(debug,
     [  --enable-debug          Turn on debugging],
     AC_DEFINE(DEBUG, 1, Define if you want to generate debugging informations)
-    CXXFLAGS="-g"
+    CXXFLAGS="${CXXFLAGS} -g"
 )
 
 dnl Checks for gettext
openSUSE Build Service is sponsored by