mirror of https://git.tukaani.org/xz.git
Automatically disable assembler code on Darwin x86.
Darwin has different ABI than GNU+Linux and Solaris, thus the assembler code doesn't assemble on Darwin.
This commit is contained in:
parent
c15a7abf66
commit
88ee301ec2
17
configure.ac
17
configure.ac
|
@ -298,8 +298,21 @@ AC_ARG_ENABLE(assembler, AC_HELP_STRING([--disable-assembler],
|
||||||
[], [enable_assembler=yes])
|
[], [enable_assembler=yes])
|
||||||
if test "x$enable_assembler" = xyes; then
|
if test "x$enable_assembler" = xyes; then
|
||||||
case $host_cpu in
|
case $host_cpu in
|
||||||
i?86) enable_assembler=x86 ;;
|
i?86)
|
||||||
*) enable_assembler=no ;;
|
# Darwin has different ABI than GNU+Linux and Solaris,
|
||||||
|
# and the x86 assembler code doesn't assemble.
|
||||||
|
case $host_os in
|
||||||
|
darwin*)
|
||||||
|
enable_assembler=no
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
enable_assembler=x86
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
enable_assembler=no
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
case $enable_assembler in
|
case $enable_assembler in
|
||||||
|
|
Loading…
Reference in New Issue