configure: Compile as 32-bit on powerpc64
André Hentschel
nerv at dawncrow.de
Sun Nov 6 10:30:16 CST 2011
with much help from Austin English
---
configure.ac | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1340757..c47a927 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,6 +148,19 @@ case $host in
enable_win16=${enable_win16:-yes}
fi
;;
+ powerpc64*)
+ CC="$CC -m32"
+ CXX="$CXX -m32"
+ AC_MSG_CHECKING([whether $CC works])
+ AC_LINK_IFELSE([AC_LANG_PROGRAM()],AC_MSG_RESULT([yes]),
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Cannot build a 32-bit program, you need to install 32-bit development libraries.])])
+ LD="${LD:-ld} -m elf32ppc"
+ AS="${AS:-as} -a32"
+ host_cpu="powerpc"
+ notice_platform="32-bit "
+ AC_SUBST(TARGETFLAGS,"-m32")
+ enable_win16=${enable_win16:-no}
x86_64*)
if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
then
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list