From 1d9def9edae0011eeee8f83dc32fb3797ca2f46b Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 7 Oct 2011 15:36:12 -0700 Subject: More work in the Task manager. Also fixing a few bugs linked with the printer and TLS. Removed flto from compilation flags: this actually creates bad code (!) --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 79ed4c7..62c0920 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,12 @@ LD = g++ AS = gcc -c AR = ar rcs -CPPFLAGS = -O3 +ifeq ($(DEBUG),) +CPPFLAGS += -O3 +else +CPPFLAGS += -g +LDFLAGS += -g +endif ifeq ($(SYSTEM),Darwin) LIBCORO_CFLAGS = -DCORO_SJLJ @@ -32,13 +37,11 @@ else ARCH_FLAGS = -march=i686 -m32 ASFLAGS = -march=i686 --32 STRIP = strip --strip-unneeded - CPPFLAGS += -flto - LDFLAGS += -flto -O3 endif INCLUDES = -Iincludes -Ilibcoro -CPPFLAGS_NO_ARCH += $(INCLUDES) -g -DSTDC_HEADERS -fexceptions -DWORDS_LITTLEENDIAN $(HAVES) $(LIBCORO_CFLAGS) +CPPFLAGS_NO_ARCH += $(INCLUDES) -DSTDC_HEADERS -fexceptions -DWORDS_LITTLEENDIAN $(HAVES) $(LIBCORO_CFLAGS) -Wno-deprecated CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS) LDFLAGS += $(ARCH_FLAGS) $(LIBS) -- cgit v1.2.3