-o $EXE -Wl,-Map -Wl,$EXE.map \
-Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
-Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
- $l_list \
- >/dev/null
+ $l_list
if test $? = 0; then
echo "Library $one is not needed"
LDLIBS="$without_one"
-Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
-Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
$l_list -Wl,--verbose \
- >/dev/null
+ || {
+ cat $EXE.out
+ exit 1
+ }
else
echo "Custom linker script 'busybox_ldscript' found, using it"
# Add SORT_BY_ALIGNMENT to linker script (found in $EXE.out):
-Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
$l_list -Wl,--verbose \
-Wl,-T -Wl,busybox_ldscript \
- >/dev/null
+ || {
+ cat $EXE.out
+ exit 1
+ }
fi
. .config