mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-26 15:40:09 +01:00
fd.o bug #11872 improve linker test for --gc-sections
* patch by Tim Mooney <enchanter at users.sourceforge.net>
This commit is contained in:
parent
adb0270edf
commit
a295b2e66c
1 changed files with 5 additions and 2 deletions
|
|
@ -283,8 +283,11 @@ if test "$ac_gcsections" = "yes"; then
|
|||
rm -f conftest.c
|
||||
touch conftest.c
|
||||
if $CC -c conftest.c; then
|
||||
if $LD --gc-sections -o conftest conftest.o 2>&1 | \
|
||||
grep "Warning: gc-sections option ignored" > /dev/null; then
|
||||
ld_out=`$LD --gc-sections -o conftest conftest.o 2>&1`
|
||||
ld_ret=$?
|
||||
if test $ld_ret -ne 0 ; then
|
||||
ac_gcsections=no
|
||||
elif echo "$ld_out" | egrep 'option ignored|^usage:|illegal option' >/dev/null ; then
|
||||
ac_gcsections=no
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue