aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-06-19 15:58:02 +0000
committerMike Frysinger <vapier@gentoo.org>2007-06-19 15:58:02 +0000
commit5b5bcf24f5293f7f3db0aca9af98777a5aff6be2 (patch)
tree88d6cf678bcb1f56e3aba070df52091d733eb122
parent31789a81d5751acaaf373e8ede2932208161f869 (diff)
downloadbusybox-w32-5b5bcf24f5293f7f3db0aca9af98777a5aff6be2.tar.gz
busybox-w32-5b5bcf24f5293f7f3db0aca9af98777a5aff6be2.tar.bz2
busybox-w32-5b5bcf24f5293f7f3db0aca9af98777a5aff6be2.zip
punt %.bflt target in favor of proper LDFLAGS=-Wl,-elf2flt handling
-rw-r--r--Makefile4
-rw-r--r--Makefile.custom3
-rw-r--r--Makefile.flags9
3 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 341bd7d5d..4a87573b7 100644
--- a/Makefile
+++ b/Makefile
@@ -677,8 +677,12 @@ busybox_unstripped: $(busybox-all) FORCE
677 $(Q)rm -f .old_version 677 $(Q)rm -f .old_version
678 678
679busybox: busybox_unstripped 679busybox: busybox_unstripped
680ifeq ($(SKIP_STRIP),y)
681 $(Q)cp $< $@
682else
680 $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \ 683 $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \
681 busybox_unstripped -o $@ 684 busybox_unstripped -o $@
685endif
682 686
683# The actual objects are generated when descending, 687# The actual objects are generated when descending,
684# make sure no implicit rule kicks in 688# make sure no implicit rule kicks in
diff --git a/Makefile.custom b/Makefile.custom
index cf3d14321..bb5977697 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -2,9 +2,6 @@
2# Build system 2# Build system
3# ========================================================================== 3# ==========================================================================
4 4
5%.bflt: %_unstripped
6 $(CROSS_COMPILE)elf2flt $(ELF2FLTFLAGS) $< -o $@
7
8busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h $(srctree)/include/applets.h 5busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h $(srctree)/include/applets.h
9 $(Q)-$(SHELL) $^ >$@ 6 $(Q)-$(SHELL) $^ >$@
10 7
diff --git a/Makefile.flags b/Makefile.flags
index 322e43792..c9b713b02 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -3,6 +3,7 @@
3# ========================================================================== 3# ==========================================================================
4 4
5BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 5BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
6SKIP_STRIP = n
6 7
7# -std=gnu99 needed for [U]LLONG_MAX on some systems 8# -std=gnu99 needed for [U]LLONG_MAX on some systems
8CPPFLAGS += $(call cc-option,-std=gnu99,) 9CPPFLAGS += $(call cc-option,-std=gnu99,)
@@ -69,6 +70,12 @@ endif
69 70
70#LDFLAGS += -nostdlib 71#LDFLAGS += -nostdlib
71 72
73LDFLAGS_ELF2FLT = -Wl,-elf2flt
74ifneq (,$(findstring $(LDFLAGS_ELF2FLT),$(LDFLAGS)))
75SKIP_STRIP = y
76endif
77
72# Busybox is a stack-fatty so make sure we increase default size 78# Busybox is a stack-fatty so make sure we increase default size
73# (TODO: use "make stksizes" to find & fix big stack users) 79# TODO: use "make stksizes" to find & fix big stack users; should
80# just steal scripts/checkstack.pl from the kernel ...
74FLTFLAGS += -s 20000 81FLTFLAGS += -s 20000