[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [patch] Fix ppc32 target build
From: |
Jan Kratochvil |
Subject: |
[Libunwind-devel] [patch] Fix ppc32 target build |
Date: |
Sun, 12 Apr 2009 16:26:54 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi,
libunwind currently does not compile if you either specify 32-bit ppc
explicitely (as do the build tools like Fedora Koji):
./configure --build=powerpc-unknown-linux-gnu --host=powerpc-unknown-linux-gnu
--target=powerpc-unknown-linux-gnu
or even if you just keep the default CC=gcc (therefore default -m32) setup.
There are no ppc64->ppc32 regression (although there are ppc32->ppc64 ones).
Thanks,
Jan
diff --git a/configure.in b/configure.in
index 0bc2e61..1271a56 100644
--- a/configure.in
+++ b/configure.in
@@ -79,7 +79,7 @@ get_arch() {
i?86) echo x86;;
hppa*) echo hppa;;
mips*) echo mips;;
- powerpc64) is_gcc_m64;;
+ powerpc*) is_gcc_m64;;
*) echo $1;;
esac
}
diff --git a/src/ptrace/_UPT_find_proc_info.c b/src/ptrace/_UPT_find_proc_info.c
index 67caaba..2b81e59 100644
--- a/src/ptrace/_UPT_find_proc_info.c
+++ b/src/ptrace/_UPT_find_proc_info.c
@@ -146,7 +146,7 @@ _UPTi_find_unwind_table (struct UPT_info *ui,
unw_addr_space_t as,
}
#elif UNW_TARGET_X86 || UNW_TARGET_X86_64 || UNW_TARGET_HPPA \
-|| UNW_TARGET_PPC64 || UNW_TARGET_ARM
+|| UNW_TARGET_PPC32 || UNW_TARGET_PPC64 || UNW_TARGET_ARM
#include "dwarf-eh.h"
#include "dwarf_i.h"
- [Libunwind-devel] [patch] Fix ppc32 target build,
Jan Kratochvil <=