aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-21 22:26:02 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-21 22:26:02 +0000
commitf2376f45a3170ca8de4bdd91aeb31672a2455f28 (patch)
tree236540813fbf0a5f6fa46a5fe233b0ad4319540e /Makefile
parent4f653a54e3ed81d1d485565c3b6afe1334741c60 (diff)
downloadbusybox-w32-f2376f45a3170ca8de4bdd91aeb31672a2455f28.tar.gz
busybox-w32-f2376f45a3170ca8de4bdd91aeb31672a2455f28.tar.bz2
busybox-w32-f2376f45a3170ca8de4bdd91aeb31672a2455f28.zip
Decouple DODEBUG and DOSTATIC
git-svn-id: svn://busybox.net/trunk/busybox@1088 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 14 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 6a9c694fa..105f80544 100644
--- a/Makefile
+++ b/Makefile
@@ -93,21 +93,20 @@ else
93 CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE 93 CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
94 LDFLAGS += -s 94 LDFLAGS += -s
95 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) 95 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
96 #Only staticly link when _not_ debugging 96endif
97 ifeq ($(DOSTATIC),true) 97ifeq ($(DOSTATIC),true)
98 LDFLAGS += --static 98 LDFLAGS += --static
99 # 99 #
100 #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they 100 #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they
101 # work) to try and strip out any unused junk. Doesn't do much for me, 101 # work) to try and strip out any unused junk. Doesn't do much for me,
102 # but you may want to give it a shot... 102 # but you may want to give it a shot...
103 # 103 #
104 #ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \ 104 #ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
105 # -o /dev/null -xc /dev/null 2>/dev/null && $(LD) \ 105 # -o /dev/null -xc /dev/null 2>/dev/null && $(LD) \
106 # --gc-sections -v >/dev/null && echo 1),1) 106 # --gc-sections -v >/dev/null && echo 1),1)
107 # CFLAGS += -ffunction-sections -fdata-sections 107 # CFLAGS += -ffunction-sections -fdata-sections
108 # LDFLAGS += --gc-sections 108 # LDFLAGS += --gc-sections
109 #endif 109 #endif
110 endif
111endif 110endif
112 111
113ifndef $(PREFIX) 112ifndef $(PREFIX)