diff --git a/src/configure b/src/configure index 399331564..65d0f66dc 100755 --- a/src/configure +++ b/src/configure @@ -4820,6 +4820,7 @@ if test "$with_debug_cflags" = "yes"; then fi if test "$with_debug_cflags" != "no"; then CFLAGS="$with_debug_cflags $CFLAGS" + CXXFLAGS="$with_debug_cflags $CXXFLAGS" LDFLAGS="$with_debug_cflags $LDFLAGS" fi if test "$with_profile_cflags" = "yes"; then @@ -4827,6 +4828,7 @@ if test "$with_profile_cflags" = "yes"; then fi if test "$with_profile_cflags" != "no"; then CFLAGS="$with_profile_cflags $CFLAGS" + CXXFLAGS="$with_profile_cflags $CFLAGS" LDFLAGS="$with_profile_cflags $LDFLAGS" fi diff --git a/src/configure.in b/src/configure.in index b9e436d79..b80fb1309 100644 --- a/src/configure.in +++ b/src/configure.in @@ -329,6 +329,7 @@ if test "$with_debug_cflags" = "yes"; then fi if test "$with_debug_cflags" != "no"; then CFLAGS="$with_debug_cflags $CFLAGS" + CXXFLAGS="$with_debug_cflags $CXXFLAGS" LDFLAGS="$with_debug_cflags $LDFLAGS" fi if test "$with_profile_cflags" = "yes"; then @@ -336,6 +337,7 @@ if test "$with_profile_cflags" = "yes"; then fi if test "$with_profile_cflags" != "no"; then CFLAGS="$with_profile_cflags $CFLAGS" + CXXFLAGS="$with_profile_cflags $CFLAGS" LDFLAGS="$with_profile_cflags $LDFLAGS" fi