aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-09-21 22:26:02 +0000
committerEric Andersen <andersen@codepoet.org>2000-09-21 22:26:02 +0000
commit2c1faecba7140bb5b51ecb544b2420b5fbcc78b5 (patch)
tree236540813fbf0a5f6fa46a5fe233b0ad4319540e /Makefile
parentc873d61008d544fa3fba40232f0c6f6f87c534ab (diff)
downloadbusybox-2c1faecba7140bb5b51ecb544b2420b5fbcc78b5.tar.gz
Decouple DODEBUG and DOSTATIC
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
CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
LDFLAGS += -s
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
- #Only staticly link when _not_ debugging
- ifeq ($(DOSTATIC),true)
- LDFLAGS += --static
- #
- #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they
- # work) to try and strip out any unused junk. Doesn't do much for me,
- # but you may want to give it a shot...
- #
- #ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
- # -o /dev/null -xc /dev/null 2>/dev/null && $(LD) \
- # --gc-sections -v >/dev/null && echo 1),1)
- # CFLAGS += -ffunction-sections -fdata-sections
- # LDFLAGS += --gc-sections
- #endif
- endif
+endif
+ifeq ($(DOSTATIC),true)
+ LDFLAGS += --static
+ #
+ #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they
+ # work) to try and strip out any unused junk. Doesn't do much for me,
+ # but you may want to give it a shot...
+ #
+ #ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
+ # -o /dev/null -xc /dev/null 2>/dev/null && $(LD) \
+ # --gc-sections -v >/dev/null && echo 1),1)
+ # CFLAGS += -ffunction-sections -fdata-sections
+ # LDFLAGS += --gc-sections
+ #endif
endif
ifndef $(PREFIX)