diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
commit | 9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch) | |
tree | 3d177ef7f3f5e8338690718c86012203ef29a7da /Makefile.flags | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) | |
download | busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.gz busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.bz2 busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.zip |
add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
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) |