summaryrefslogtreecommitdiff
path: root/debian/patches/002-build-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/002-build-flags.patch')
-rw-r--r--debian/patches/002-build-flags.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/002-build-flags.patch b/debian/patches/002-build-flags.patch
new file mode 100644
index 0000000..ee7d233
--- /dev/null
+++ b/debian/patches/002-build-flags.patch
@@ -0,0 +1,16 @@
+Description: Fill build flags directly in Makefile
+Author: Francis Russell <francis@unchartedbackwaters.co.uk>
+--- a/Makefile 2012-02-07 10:36:48.000000000 +0000
++++ b/Makefile 2013-01-13 23:19:51.593631914 +0000
+@@ -50,6 +50,11 @@
+ export WXCONFIG_CXXFLAGS :=
+ WX_ROOT ?= ..
+
++CPPFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS)
++CFLAGS+=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
++CXXFLAGS+=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
++LFLAGS+=$(shell dpkg-buildflags --get LDFLAGS)
++
+
+ export TC_BUILD_CONFIG := Release
+