diff options
author | mescalinum <mescalinum@users.sourceforge.net> | 2009-09-02 19:14:42 +0000 |
---|---|---|
committer | mescalinum <mescalinum@users.sourceforge.net> | 2009-09-02 19:14:42 +0000 |
commit | 625056576b0e61325d85290a1448a8891928e34a (patch) | |
tree | 4f5aa0db16f46059debcc948f46558b809b57a2e | |
parent | 41800157b72854e6935b4ffa7e8b93911796ce8d (diff) |
disable optimizations for debug builds
svn path=/trunk/externals/tclpd/; revision=12188
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -22,8 +22,11 @@ endif LIBNAME = tcl TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh) INCLUDES = -I../../pd/src -I/usr/include -I/usr/include/tcl$(TCL_VERSION) -CFLAGS += -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -O2 -Wall -fPIC +CFLAGS += -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -Wall -fPIC CFLAGS += -DPDSUF=\"$(PDSUF)\" +ifeq ($(DEBUG),0) + CFLAGS += -O2 +endif LDSOFLAGS += -lm -ltcl$(TCL_VERSION) LDSHARED = $(CXX) $(PDBUNDLEFLAGS) |