diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-06-19 15:58:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-06-19 15:58:02 +0000 |
commit | 5b5bcf24f5293f7f3db0aca9af98777a5aff6be2 (patch) | |
tree | 88d6cf678bcb1f56e3aba070df52091d733eb122 | |
parent | 31789a81d5751acaaf373e8ede2932208161f869 (diff) | |
download | busybox-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-- | Makefile | 4 | ||||
-rw-r--r-- | Makefile.custom | 3 | ||||
-rw-r--r-- | Makefile.flags | 9 |
3 files changed, 12 insertions, 4 deletions
@@ -677,8 +677,12 @@ busybox_unstripped: $(busybox-all) FORCE | |||
677 | $(Q)rm -f .old_version | 677 | $(Q)rm -f .old_version |
678 | 678 | ||
679 | busybox: busybox_unstripped | 679 | busybox: busybox_unstripped |
680 | ifeq ($(SKIP_STRIP),y) | ||
681 | $(Q)cp $< $@ | ||
682 | else | ||
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 $@ |
685 | endif | ||
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 | |||
8 | busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h $(srctree)/include/applets.h | 5 | busybox.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 | ||
5 | BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) | 5 | BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) |
6 | SKIP_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 |
8 | CPPFLAGS += $(call cc-option,-std=gnu99,) | 9 | CPPFLAGS += $(call cc-option,-std=gnu99,) |
@@ -69,6 +70,12 @@ endif | |||
69 | 70 | ||
70 | #LDFLAGS += -nostdlib | 71 | #LDFLAGS += -nostdlib |
71 | 72 | ||
73 | LDFLAGS_ELF2FLT = -Wl,-elf2flt | ||
74 | ifneq (,$(findstring $(LDFLAGS_ELF2FLT),$(LDFLAGS))) | ||
75 | SKIP_STRIP = y | ||
76 | endif | ||
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 ... | ||
74 | FLTFLAGS += -s 20000 | 81 | FLTFLAGS += -s 20000 |