File: 03_respect_build_flags_from_env.patch

package info (click to toggle)
warmux 1%3A11.04.1%2Brepack2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 126,388 kB
  • sloc: cpp: 186,040; xml: 8,909; sh: 3,358; makefile: 1,052; ansic: 713
file content (23 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Don't reset CFLAGS/CXXFLAGS but use the environment variables.
Author: Felix Geyer <debfx-pkg@fobos.de>

--- warmux-11.01.orig/configure.ac
+++ warmux-11.01/configure.ac
@@ -43,8 +43,6 @@
   AC_MSG_ERROR([*** No C++ compiler can be found!])
 fi
 
-AX_CFLAGS_WARN_ALL([CXXFLAGS])
-
 # ==========================================================================
 # == Set flags for various environments                                    =
 # ==========================================================================
@@ -186,8 +184,6 @@
 
   if test "x${debug}" = "xyes"; then
     GCC_FLAGS="$GCC_FLAGS -O0 -g -DDEBUG -DWMX_LOG"
-  else
-    GCC_FLAGS="$GCC_FLAGS -O2"
   fi
 
   if test "x${logging}" = "xyes"; then