1 diff -urN busybox-1.8.1/scripts/trylink busybox-1.8.1-trylink/scripts/trylink
2 --- busybox-1.8.1/scripts/trylink 2007-11-09 18:40:48.000000000 -0700
3 +++ busybox-1.8.1-trylink/scripts/trylink 2007-11-13 11:13:30.000000000 -0700
9 + if $CC $1 -shared -o /dev/null -xc /dev/null > /dev/null 2>&1; then
23 +# The -Wl,--sort-section option is not supported by older versions of ld
24 +SORT_SECTION=`check_cc "-Wl,--sort-section -Wl,alignment" ""`
26 # Sanitize lib list (dups, extra spaces etc)
27 LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs`
33 - -Wl,--sort-section -Wl,alignment \
36 -Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
42 - -Wl,--sort-section -Wl,alignment \
45 -Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
51 - -Wl,--sort-section -Wl,alignment \
54 -Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
60 - -Wl,--sort-section -Wl,alignment \
63 -Wl,-T -Wl,busybox_ldscript \
64 -Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
66 -Wl,-soname="libbusybox.so.$BB_VER" \
67 -Wl,--undefined=lbb_main \
69 - -Wl,--sort-section -Wl,alignment \
71 -Wl,--start-group $A_FILES -Wl,--end-group \
78 - -Wl,--sort-section -Wl,alignment \
81 -Wl,--start-group $O_FILES -Wl,--end-group \
82 -L"$sharedlib_dir" -lbusybox \
84 try $CC $LDFLAGS "$sharedlib_dir/applet.c" \
87 - -Wl,--sort-section -Wl,alignment \
90 -L"$sharedlib_dir" -lbusybox \