aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trylink8
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 "\
223void bbox_prepare_main(char **argv); 223void lbb_prepare(char **argv);
224int $main(int argc, char **argv); 224int $main(int argc, char **argv);
225 225
226const char *applet_name = \"$name\"; 226const char *applet_name = \"$name\";
227 227
228int main(int argc, char **argv) 228int 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"