aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.flags6
1 files changed, 6 insertions, 0 deletions
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)
56CFLAGS += $(call cc-option,-g) 56CFLAGS += $(call cc-option,-g)
57endif 57endif
58 58
59# on i386: 14% smaller libbusybox.so
60# (code itself is 9% bigger, we save on relocs/PLT/GOT)
61ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y)
62CFLAGS += -fpic
63endif
64
59ifeq ($(CONFIG_STATIC),y) 65ifeq ($(CONFIG_STATIC),y)
60LDFLAGS += -static 66LDFLAGS += -static
61endif 67endif