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 /scripts | |
| 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 'scripts')
| -rwxr-xr-x | scripts/trylink | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/trylink b/scripts/trylink index 6292dc659..25629aa1a 100755 --- a/scripts/trylink +++ b/scripts/trylink | |||
| @@ -26,7 +26,7 @@ debug=false | |||
| 26 | # --enable-new-dtags ? | 26 | # --enable-new-dtags ? |
| 27 | # -z,combreloc ? | 27 | # -z,combreloc ? |
| 28 | # -soname="libbusybox.so.$BB_VER" | 28 | # -soname="libbusybox.so.$BB_VER" |
| 29 | # --undefined=libbusybox_main Seed name to start pulling from | 29 | # --undefined=lbb_main Seed name to start pulling from |
| 30 | # (otherwise we'll need --whole-archive) | 30 | # (otherwise we'll need --whole-archive) |
| 31 | # -static Not used, but may be useful! manpage: | 31 | # -static Not used, but may be useful! manpage: |
| 32 | # "... This option can be used with -shared. | 32 | # "... This option can be used with -shared. |
| @@ -172,7 +172,7 @@ if test "$CONFIG_BUILD_LIBBUSYBOX" = y; then | |||
| 172 | -Wl,--enable-new-dtags \ | 172 | -Wl,--enable-new-dtags \ |
| 173 | -Wl,-z,combreloc \ | 173 | -Wl,-z,combreloc \ |
| 174 | -Wl,-soname="libbusybox.so.$BB_VER" \ | 174 | -Wl,-soname="libbusybox.so.$BB_VER" \ |
| 175 | -Wl,--undefined=libbusybox_main \ | 175 | -Wl,--undefined=lbb_main \ |
| 176 | -Wl,--sort-common \ | 176 | -Wl,--sort-common \ |
| 177 | -Wl,--sort-section -Wl,alignment \ | 177 | -Wl,--sort-section -Wl,alignment \ |
| 178 | -Wl,--start-group $A_FILES -Wl,--end-group \ | 178 | -Wl,--start-group $A_FILES -Wl,--end-group \ |
| @@ -220,14 +220,14 @@ if test "$CONFIG_FEATURE_INDIVIDUAL" = y; then | |||
| 220 | while read name main junk; do | 220 | while read name main junk; do |
| 221 | 221 | ||
| 222 | echo "\ | 222 | echo "\ |
| 223 | void bbox_prepare_main(char **argv); | 223 | void lbb_prepare(char **argv); |
| 224 | int $main(int argc, char **argv); | 224 | int $main(int argc, char **argv); |
| 225 | 225 | ||
| 226 | const char *applet_name = \"$name\"; | 226 | const char *applet_name = \"$name\"; |
| 227 | 227 | ||
| 228 | int main(int argc, char **argv) | 228 | int main(int argc, char **argv) |
| 229 | { | 229 | { |
| 230 | bbox_prepare_main(argv); | 230 | lbb_prepare(argv); |
| 231 | return $main(argc, argv); | 231 | return $main(argc, argv); |
| 232 | } | 232 | } |
| 233 | " >"$sharedlib_dir/applet.c" | 233 | " >"$sharedlib_dir/applet.c" |
