mirror of
https://github.com/xemu-project/xemu.git
synced 2025-01-30 00:12:41 +00:00
Fix build on Mac OS X
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
cd57c0f317
commit
08b9d66b96
10
configure
vendored
10
configure
vendored
@ -1817,7 +1817,11 @@ esac
|
|||||||
# Determine what linker flags to use to force archive inclusion
|
# Determine what linker flags to use to force archive inclusion
|
||||||
check_linker_flags()
|
check_linker_flags()
|
||||||
{
|
{
|
||||||
$cc $ARCH_CFLAGS -o $TMPE $OS_CFLAGS $TMPC -Wl,$1 -Wl,$2 >/dev/null 2>/dev/null
|
w2=
|
||||||
|
if test "$2" ; then
|
||||||
|
w2=-Wl,$2
|
||||||
|
fi
|
||||||
|
$cc $ARCH_CFLAGS -o $TMPE $OS_CFLAGS $TMPC -Wl,$1 ${w2} >/dev/null 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
@ -1831,6 +1835,10 @@ elif check_linker_flags -z,allextract -z,defaultextract ; then
|
|||||||
# Solaris ld
|
# Solaris ld
|
||||||
echo "ARLIBS_BEGIN=-Wl,-z,allextract" >> $config_mak
|
echo "ARLIBS_BEGIN=-Wl,-z,allextract" >> $config_mak
|
||||||
echo "ARLIBS_END=-Wl,-z,defaultextract" >> $config_mak
|
echo "ARLIBS_END=-Wl,-z,defaultextract" >> $config_mak
|
||||||
|
elif check_linker_flags -all_load ; then
|
||||||
|
# Mac OS X
|
||||||
|
echo "ARLIBS_BEGIN=-all_load" >> $config_mak
|
||||||
|
echo "ARLIBS_END=" >> $config_mak
|
||||||
else
|
else
|
||||||
echo "Error: your linker does not support --whole-archive or -z."
|
echo "Error: your linker does not support --whole-archive or -z."
|
||||||
echo "Please report to qemu-devel@nongnu.org"
|
echo "Please report to qemu-devel@nongnu.org"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user