aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-13 00:28:25 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-13 00:28:25 +0000
commit23dea9b712daf0f29bdbb0e6adce1d697f53cefc (patch)
treecc33af862cd2980866ca4ef9048e8b2d42e8eb0b /Makefile
parent7ab9c7ee52db8759d457819f5480378fa3aa97cc (diff)
downloadbusybox-23dea9b712daf0f29bdbb0e6adce1d697f53cefc.tar.gz
So much for my evil optimization. Doesn't seem to work. Will test
more on it later. -Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 6323bd337..e9192f948 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,17 @@ else
#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 && $(LD) --gc-sections -v >/dev/null && echo 1),1)
+ # CFLAGS += -ffunction-sections -fdata-sections -DFUNCTION_SECTIONS
+ # LDFLAGS += --gc-sections
+ #endif
+ #
endif
endif
@@ -74,13 +85,6 @@ ifdef BB_INIT_SCRIPT
CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
endif
-# use '-ffunction-sections -fdata-sections' and '--gc-sections' if they work
-ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
- -o /dev/null -xc /dev/null && $(LD) --gc-sections -v >/dev/null && echo 1),1)
- CFLAGS += -ffunction-sections -fdata-sections -DFUNCTION_SECTIONS
- LDFLAGS += --gc-sections
-endif
-
all: busybox busybox.links doc
doc: docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html