mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-04-18 10:22:16 +02:00
Multi-architecture support. Rename ARCH_x86 to ARCH_IA32.
(Logical change 1.12)
This commit is contained in:
parent
6432d81f05
commit
41659aa324
1 changed files with 5 additions and 5 deletions
10
configure.in
10
configure.in
|
@ -44,13 +44,12 @@ target_arch=`get_arch $target_cpu`
|
||||||
|
|
||||||
AM_CONDITIONAL(REMOTE_ONLY, test x$target_arch != x$build_arch)
|
AM_CONDITIONAL(REMOTE_ONLY, test x$target_arch != x$build_arch)
|
||||||
AM_CONDITIONAL(ARCH_IA64, test x$target_arch == xia64)
|
AM_CONDITIONAL(ARCH_IA64, test x$target_arch == xia64)
|
||||||
AM_CONDITIONAL(ARCH_x86, test x$target_arch == x86)
|
AM_CONDITIONAL(ARCH_IA32, test x$target_arch == x86)
|
||||||
|
|
||||||
if test x$target_arch != x$build_arch; then
|
if test x$target_arch != x$build_arch; then
|
||||||
CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
|
CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
|
||||||
if test x$prefix = xNONE; then
|
else
|
||||||
prefix=/usr/local/$target_cpu-$target_os
|
AC_CONFIG_LINKS(include/libunwind.h:include/libunwind-$target_arch.h)
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
|
@ -65,9 +64,10 @@ else
|
||||||
fi
|
fi
|
||||||
ASFLAGS="${ASFLAGS} ${CPPFLAGS}"
|
ASFLAGS="${ASFLAGS} ${CPPFLAGS}"
|
||||||
|
|
||||||
|
arch="$target_arch"
|
||||||
ARCH=`echo $target_arch | tr [a-z] [A-Z]`
|
ARCH=`echo $target_arch | tr [a-z] [A-Z]`
|
||||||
|
|
||||||
AC_CONFIG_LINKS(include/libunwind-tdep.h:include/libunwind-$target_arch.h)
|
|
||||||
|
|
||||||
|
AC_SUBST(arch)
|
||||||
AC_SUBST(ARCH)
|
AC_SUBST(ARCH)
|
||||||
AC_OUTPUT(Makefile src/Makefile tests/Makefile doc/Makefile)
|
AC_OUTPUT(Makefile src/Makefile tests/Makefile doc/Makefile)
|
||||||
|
|
Loading…
Add table
Reference in a new issue