commit | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Thu Oct 11 10:02:52 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Thu Oct 11 10:02:52 2007 +0000 |
tree | cab3e474e8e7fa29f27061fd6bbaa22e96e6711a | |
parent | 52a4388d95436c268a3488c6ff00e4641afd12d3 [diff] [blame] |
add -fpic to CC flags when we build libbusybox (14% smaller .so)
diff --git a/Makefile.flags b/Makefile.flags index 5294915..243f095 100644 --- a/Makefile.flags +++ b/Makefile.flags
@@ -56,6 +56,12 @@ 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