diff options
| author | Cory Fields <[email protected]> | 2014-09-23 17:00:31 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2014-09-25 14:56:26 -0400 |
| commit | f3973040028d6a7335a3265fa0e13b599b2fac3d (patch) | |
| tree | 0a90f1d0ef63fbc73f75eee7c79f872d2869bc65 /depends/hosts/linux.mk | |
| parent | depends: add the debug/release concept to depends (diff) | |
| download | discoin-f3973040028d6a7335a3265fa0e13b599b2fac3d.tar.xz discoin-f3973040028d6a7335a3265fa0e13b599b2fac3d.zip | |
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.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/depends/hosts/linux.mk b/depends/hosts/linux.mk index 194d71d55..b13a0f1ad 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 |