summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-25 22:08:13 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-25 22:08:13 +0000
commitd61a63c04ef4fad938713493366dbec1cf2c34eb (patch)
tree9f1c5673a854ddb94602e49b2f489e45c7143743 /GNUmakefile
parent1ef876db59fc5b9c4bfd33b951cf9ebe8fc328cc (diff)
Update SRCS, use -rdynamic in DEBUG case, lose openssl crap.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6cd454b5..3acfd1c7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,4 @@
-# $Id: GNUmakefile,v 1.7 2007-11-25 22:03:13 nicm Exp $
+# $Id: GNUmakefile,v 1.8 2007-11-25 22:08:13 nicm Exp $
.PHONY: clean
@@ -30,7 +30,7 @@ INCDIRS+= -I. -I-
CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
ifdef DEBUG
CFLAGS+= -g -ggdb -DDEBUG
-LDFLAGS+= -Wl,-E
+LDFLAGS+= -rdynamic
endif
CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
@@ -45,13 +45,14 @@ INSTALLBIN= install -g bin -o root -m 555
INSTALLMAN= install -g bin -o root -m 444
ifeq ($(shell uname),Darwin)
-INCDIRS+= -I/usr/local/include/openssl -Icompat
+INCDIRS+= -Icompat
SRCS+= compat/strtonum.c
-CFLAGS+= -DNO_STRTONUM -DNO_SETRESUID -DNO_SETRESGID -DNO_SETPROCTITLE
+CFLAGS+= -DNO_STRTONUM -DNO_SETRESUID -DNO_SETRESGID -DNO_SETPROCTITLE \
+ -DNO_TREE_H
endif
ifeq ($(shell uname),Linux)
-INCDIRS+= -I/usr/include/openssl -Icompat
+INCDIRS+= -Icompat
SRCS+= compat/strlcpy.c compat/strlcat.c compat/strtonum.c
CFLAGS+= $(shell getconf LFS_CFLAGS) -D_GNU_SOURCE \
-DNO_STRLCPY -DNO_STRLCAT -DNO_STRTONUM -DNO_SETPROCTITLE \