From: Denis Vlasenko Date: Thu, 11 Oct 2007 10:02:52 +0000 (-0000) Subject: add -fpic to CC flags when we build libbusybox (14% smaller .so) X-Git-Tag: 1_8_0~65 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a;p=oweals%2Fbusybox.git add -fpic to CC flags when we build libbusybox (14% smaller .so) --- diff --git a/Makefile.flags b/Makefile.flags index 529491557..243f095e2 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -56,6 +56,12 @@ ifeq ($(CONFIG_DEBUG),y) CFLAGS += $(call cc-option,-g) endif +# on i386: 14% smaller libbusybox.so +# (code itself is 9% bigger, we save on relocs/PLT/GOT) +ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y) +CFLAGS += -fpic +endif + ifeq ($(CONFIG_STATIC),y) LDFLAGS += -static endif