aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2007-06-19 15:58:02 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2007-06-19 15:58:02 +0000
commit5b5bcf24f5293f7f3db0aca9af98777a5aff6be2 (patch)
tree88d6cf678bcb1f56e3aba070df52091d733eb122 /Makefile.flags
parent31789a81d5751acaaf373e8ede2932208161f869 (diff)
downloadbusybox-5b5bcf24f5293f7f3db0aca9af98777a5aff6be2.tar.gz
busybox-5b5bcf24f5293f7f3db0aca9af98777a5aff6be2.tar.bz2
punt %.bflt target in favor of proper LDFLAGS=-Wl,-elf2flt handling
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 322e43792..c9b713b02 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -3,6 +3,7 @@
# ==========================================================================
BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+SKIP_STRIP = n
# -std=gnu99 needed for [U]LLONG_MAX on some systems
CPPFLAGS += $(call cc-option,-std=gnu99,)
@@ -69,6 +70,12 @@ endif
#LDFLAGS += -nostdlib
+LDFLAGS_ELF2FLT = -Wl,-elf2flt
+ifneq (,$(findstring $(LDFLAGS_ELF2FLT),$(LDFLAGS)))
+SKIP_STRIP = y
+endif
+
# Busybox is a stack-fatty so make sure we increase default size
-# (TODO: use "make stksizes" to find & fix big stack users)
+# TODO: use "make stksizes" to find & fix big stack users; should
+# just steal scripts/checkstack.pl from the kernel ...
FLTFLAGS += -s 20000