From 625056576b0e61325d85290a1448a8891928e34a Mon Sep 17 00:00:00 2001 From: mescalinum Date: Wed, 2 Sep 2009 19:14:42 +0000 Subject: disable optimizations for debug builds svn path=/trunk/externals/tclpd/; revision=12188 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 28a512b..7f37a4d 100644 --- a/Makefile +++ b/Makefile @@ -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) -- cgit v1.2.1