File gigaset-frontend-optflags.patch of Package gigaset-frontend
--- console/Makefile.orig 2011-08-21 23:48:35.551000523 +0200
+++ console/Makefile 2011-08-21 23:48:42.100000523 +0200
@@ -1,5 +1,5 @@
CFLAGS = -Wall
-CFLAGS += -g
+CFLAGS += $(OPTFLAGS)
#CFLAGS += -pedantic -W
INSTALL = install
INSTALL-D = $(INSTALL) -d
--- lib/Makefile.orig 2011-08-21 23:47:48.601000524 +0200
+++ lib/Makefile 2011-08-21 23:47:59.058000523 +0200
@@ -1,5 +1,5 @@
CFLAGS = -Wall
-CFLAGS += -g
+CFLAGS += $(OPTFLAGS)
#CFLAGS += -pedantic -W
#CFLAGS += -DGIG_TEST #FIXME REMOVE
--- qt/Makefile.orig 2011-08-21 23:46:13.857000523 +0200
+++ qt/Makefile 2011-08-21 23:46:39.190000524 +0200
@@ -1,6 +1,8 @@
INSTALL := install
INSTALL-D := $(INSTALL) -d
+OPTFLAGS = -g
+
# cross-compiling: set QTDIR to Windows qt-dir and QTBINDIR to Linux qt-dir/bin
QTBINDIR := $(QTDIR)/bin
MOC := $(QTBINDIR)/moc
@@ -57,13 +59,13 @@
LIBS += $(shell pkg-config --libs QtCore)
CXXFLAGS += $(shell pkg-config --cflags QtGui)
LIBS += $(shell pkg-config --libs QtGui)
-CXXFLAGS += -s -O3
+CXXFLAGS += $(OPTFLAGS)
else
CXXFLAGS += $(shell pkg-config --cflags QtCore_debug)
LIBS += $(shell pkg-config --libs QtCore_debug)
CXXFLAGS += $(shell pkg-config --cflags QtGui_debug)
LIBS += $(shell pkg-config --libs QtGui_debug)
-CXXFLAGS += -g
+CXXFLAGS += $(OPTFLAGS)
endif
CXXFLAGS += -DQGIGASET_DATADIR=$(DATADIR)