Author: Oliver Korff <ok@xynyx.de>                                                                    
Description: enables CXXFLAGS and LDFLAGS from dpkg-buildflags                         
   This Patch enables the use of the CXXFLAGS and LDFLAGS from 
   dpkg-buildflags, they are supported by environment variables
   and won't be applied without. Goal Hardening.
--- a/src/Makefile
+++ b/src/Makefile
@@ -212,7 +212,7 @@
 endif
 
 ### 3.2 General compiler settings
-CXXFLAGS = -g -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
+CXXFLAGS += -g -Wall -Wcast-qual -fno-exceptions -fno-rtti $(EXTRACXXFLAGS)
 
 ifeq ($(comp),gcc)
 	CXXFLAGS += -ansi -pedantic -Wno-long-long -Wextra -Wshadow
@@ -235,7 +235,7 @@
 endif
 
 ### 3.3 General linker settings
-LDFLAGS = $(EXTRALDFLAGS)
+LDFLAGS += $(EXTRALDFLAGS)
 
 ### On mingw use Windows threads, otherwise POSIX
 ifneq ($(comp),mingw)
