X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=Makefile.flags;h=26552222d0094545df9074c637b0092e5061fa9a;hb=f7be20e70c27b0bed505710393a99d1b6f821ff1;hp=529491557eed11d884b148c9f3c582bba606d0bf;hpb=def88985966a9351911844d42e06b735977bcb72;p=oweals%2Fbusybox.git diff --git a/Makefile.flags b/Makefile.flags index 529491557..26552222d 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -56,6 +56,15 @@ ifeq ($(CONFIG_DEBUG),y) CFLAGS += $(call cc-option,-g) endif +ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y) +# on i386: 14% smaller libbusybox.so +# (code itself is 9% bigger, we save on relocs/PLT/GOT) +CFLAGS += -fpic +# and another 4% reduction of libbusybox.so: +# (external entry points must be marked EXTERNALLY_VISIBLE) +CFLAGS += $(call cc-option,-fvisibility=hidden) +endif + ifeq ($(CONFIG_STATIC),y) LDFLAGS += -static endif @@ -88,4 +97,5 @@ endif # Busybox is a stack-fatty so make sure we increase default size # TODO: use "make stksizes" to find & fix big stack users # (we stole scripts/checkstack.pl from the kernel... thanks guys!) -FLTFLAGS += -s 20000 +# Reduced from 20k to 16k in 1.9.0. +FLTFLAGS += -s 16000