mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 00:57:39 +01:00
Just a small patch to build system, it helps if you build in a power
without altivec.
This commit is contained in:
parent
5c95d139df
commit
a1e7ee4836
2 changed files with 14 additions and 1 deletions
10
configure.in
10
configure.in
|
@ -63,6 +63,16 @@ is_gcc_m64() {
|
||||||
fi;
|
fi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is_gcc_altivec() {
|
||||||
|
if test `echo $CFLAGS | grep "\-maltivec" -c` -eq 1 ; then echo has_altivec;
|
||||||
|
else
|
||||||
|
if test `echo $CC | grep "\-maltivec" -c` -eq 1 ; then echo has_altivec; else echo no_altivec; fi;
|
||||||
|
fi;
|
||||||
|
}
|
||||||
|
|
||||||
|
use_altivec=`is_gcc_altivec`
|
||||||
|
AM_CONDITIONAL(USE_ALTIVEC, test x$use_altivec = xhas_altivec)
|
||||||
|
|
||||||
get_arch() {
|
get_arch() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
i?86) echo x86;;
|
i?86) echo x86;;
|
||||||
|
|
|
@ -27,7 +27,10 @@ if ARCH_IA64
|
||||||
ia64-test-setjmp ia64-test-sig
|
ia64-test-setjmp ia64-test-sig
|
||||||
else
|
else
|
||||||
if ARCH_PPC64
|
if ARCH_PPC64
|
||||||
noinst_PROGRAMS_arch = ppc64-test-altivec ppc64-test-wchar
|
if USE_ALTIVEC
|
||||||
|
noinst_PROGRAMS_arch_altivec = ppc64-test-altivec ppc64-test-wchar
|
||||||
|
endif #USE_ALTIVEC
|
||||||
|
noinst_PROGRAMS_arch = $(noinst_PROGRAMS_arch_altivec) ppc64-test-wchar
|
||||||
endif #ARCH_PPC64
|
endif #ARCH_PPC64
|
||||||
endif #ARCH_IA64
|
endif #ARCH_IA64
|
||||||
check_SCRIPTS_cdep = run-ptrace-mapper run-ptrace-misc
|
check_SCRIPTS_cdep = run-ptrace-mapper run-ptrace-misc
|
||||||
|
|
Loading…
Reference in a new issue