aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-13 00:28:25 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-13 00:28:25 +0000
commit0badf56c7dd5fca27f78b715a4431f4469b6bee3 (patch)
treecc33af862cd2980866ca4ef9048e8b2d42e8eb0b /Makefile
parent3a7ad24d94bc8ca3a532664af56e7d6a5bedc073 (diff)
downloadbusybox-w32-0badf56c7dd5fca27f78b715a4431f4469b6bee3.tar.gz
busybox-w32-0badf56c7dd5fca27f78b715a4431f4469b6bee3.tar.bz2
busybox-w32-0badf56c7dd5fca27f78b715a4431f4469b6bee3.zip
So much for my evil optimization. Doesn't seem to work. Will test
more on it later. -Erik git-svn-id: svn://busybox.net/trunk/busybox@534 69ca8d6d-28ef-0310-b511-8ec308f3f277
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
59 #Only staticly link when _not_ debugging 59 #Only staticly link when _not_ debugging
60 ifeq ($(DOSTATIC),true) 60 ifeq ($(DOSTATIC),true)
61 LDFLAGS += --static 61 LDFLAGS += --static
62 #
63 #use '-ffunction-sections -fdata-sections' and '--gc-sections' if they work
64 #to try and strip out any unused junk. Doesn't do much for me, but you may
65 #want to give it a shot...
66 #
67 #ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
68 # -o /dev/null -xc /dev/null && $(LD) --gc-sections -v >/dev/null && echo 1),1)
69 # CFLAGS += -ffunction-sections -fdata-sections -DFUNCTION_SECTIONS
70 # LDFLAGS += --gc-sections
71 #endif
72 #
62 endif 73 endif
63endif 74endif
64 75
@@ -74,13 +85,6 @@ ifdef BB_INIT_SCRIPT
74 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' 85 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
75endif 86endif
76 87
77# use '-ffunction-sections -fdata-sections' and '--gc-sections' if they work
78ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
79 -o /dev/null -xc /dev/null && $(LD) --gc-sections -v >/dev/null && echo 1),1)
80 CFLAGS += -ffunction-sections -fdata-sections -DFUNCTION_SECTIONS
81 LDFLAGS += --gc-sections
82endif
83
84all: busybox busybox.links doc 88all: busybox busybox.links doc
85 89
86doc: docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html 90doc: docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html