aboutsummaryrefslogtreecommitdiff
path: root/depends/hosts/linux.mk
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-09-23 17:00:31 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-09-25 14:56:26 -0400
commitf3973040028d6a7335a3265fa0e13b599b2fac3d (patch)
tree0a90f1d0ef63fbc73f75eee7c79f872d2869bc65 /depends/hosts/linux.mk
parent2027ad30e7b436b1341a0013398732c10f880bb9 (diff)
depends: add debug/release flags for linux/osx/win
Linux and mingw enable libstdc++ debugging for extra runtime checks. OSX doesn't play nice, so don't enable it there.
Diffstat (limited to 'depends/hosts/linux.mk')
-rw-r--r--depends/hosts/linux.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/depends/hosts/linux.mk b/depends/hosts/linux.mk
index 194d71d557..b13a0f1ad7 100644
--- a/depends/hosts/linux.mk
+++ b/depends/hosts/linux.mk
@@ -1,6 +1,14 @@
-linux_CFLAGS=-pipe -O2
+linux_CFLAGS=-pipe
linux_CXXFLAGS=$(linux_CFLAGS)
+linux_release_CFLAGS=-O2
+linux_release_CXXFLAGS=$(linux_release_CFLAGS)
+
+linux_debug_CFLAGS=-O1
+linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)
+
+linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
+
ifeq (86,$(findstring 86,$(build_arch)))
i686_linux_CC=gcc -m32
i686_linux_CXX=g++ -m32