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