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 /include/busybox.h | |
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 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/busybox.h b/include/busybox.h index 1c23b9bb0..5c01eca8d 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -48,12 +48,22 @@ struct bb_applet { | |||
48 | #endif | 48 | #endif |
49 | }; | 49 | }; |
50 | 50 | ||
51 | |||
51 | /* Defined in appletlib.c */ | 52 | /* Defined in appletlib.c */ |
52 | extern const struct bb_applet applets[]; | 53 | extern const struct bb_applet applets[]; |
53 | extern const unsigned short NUM_APPLETS; | 54 | extern const unsigned short NUM_APPLETS; |
54 | void bbox_prepare_main(char **argv); | 55 | |
56 | /* Length of these names has effect on size of libbusybox | ||
57 | * and "individual" binaries. Keep them short. | ||
58 | */ | ||
59 | void lbb_prepare(char **argv) MAIN_EXTERNALLY_VISIBLE; | ||
55 | #if ENABLE_BUILD_LIBBUSYBOX | 60 | #if ENABLE_BUILD_LIBBUSYBOX |
56 | int libbusybox_main(int argc, char **argv); | 61 | #if ENABLE_FEATURE_SHARED_BUSYBOX |
62 | int lbb_main(int argc, char **argv) EXTERNALLY_VISIBLE; | ||
63 | #else | ||
64 | int lbb_main(int argc, char **argv); | ||
57 | #endif | 65 | #endif |
66 | #endif | ||
67 | |||
58 | 68 | ||
59 | #endif /* _BB_INTERNAL_H_ */ | 69 | #endif /* _BB_INTERNAL_H_ */ |