diff options
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags index 243f095e2..c023299d7 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -56,10 +56,13 @@ ifeq ($(CONFIG_DEBUG),y) | |||
56 | CFLAGS += $(call cc-option,-g) | 56 | CFLAGS += $(call cc-option,-g) |
57 | endif | 57 | endif |
58 | 58 | ||
59 | ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y) | ||
59 | # on i386: 14% smaller libbusybox.so | 60 | # on i386: 14% smaller libbusybox.so |
60 | # (code itself is 9% bigger, we save on relocs/PLT/GOT) | 61 | # (code itself is 9% bigger, we save on relocs/PLT/GOT) |
61 | ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y) | ||
62 | CFLAGS += -fpic | 62 | CFLAGS += -fpic |
63 | # and another 4% reduction of libbusybox.so: | ||
64 | # (external entry points must be marked EXTERNALLY_VISIBLE) | ||
65 | CFLAGS += $(call cc-option,-fvisibility=hidden) | ||
63 | endif | 66 | endif |
64 | 67 | ||
65 | ifeq ($(CONFIG_STATIC),y) | 68 | ifeq ($(CONFIG_STATIC),y) |