linux: fix 'add -rdynamic to linker options for debug builds'
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 9 Jul 2013 14:40:12 +0000 (16:40 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 9 Jul 2013 14:40:22 +0000 (16:40 +0200)
I moved some code around before committing and lost the ifeq DEBUG test

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile.inc

index d13a8b5..b60401a 100644 (file)
@@ -228,6 +228,9 @@ OBJS +=             $(SRCS:%.c=%.o)
 ifeq ($(DEBUG),1)
 CPPFLAGS +=    -DDEBUG
 CFLAGS +=      -ggdb
+ifeq ($(OS),linux)
+LDFLAGS  += -rdynamic
+endif
 else
 CPPFLAGS +=    -DNDEBUG
 ifeq ($(OPTIMIZE),)
@@ -240,7 +243,6 @@ endif
 
 ifeq ($(OS),linux)
 CPPFLAGS+=-DHTTPINFO_PUD -I$(TOPDIR)/lib -I$(TOPDIR)/lib/pud/nmealib/include -I$(TOPDIR)/lib/pud/wireformat/include
-LDFLAGS+=-rdynamic
 endif
 
 # a make function to quote "/" and "."