ck_pr: Merge Joao's PPC32 support with some modifications.

Add PPC32 build file. Add support in configure script.
ck_pring
Samy Al Bahra 13 years ago
parent 334ba2463f
commit 70edc1f6cb

@ -0,0 +1 @@
CFLAGS+=-m32 -D__ppc__

4
configure vendored

@ -225,9 +225,9 @@ printf "Detecting machine architecture..."
PLATFORM=`uname -m 2> /dev/null` PLATFORM=`uname -m 2> /dev/null`
case $PLATFORM in case $PLATFORM in
"macppc"|"Power Macintosh"|"powerpc") "macppc"|"Power Macintosh"|"powerpc")
PLATFORM=ppc32 PLATFORM=ppc
ENVIRONMENT=32 ENVIRONMENT=32
assert "$PLATFORM $ENVIRONMENT" "$PLATFORM $ENVIRONMENT" "unsupported" LDFLAGS="-m32 $LDFLAGS"
;; ;;
"sun4u"|"sun4v"|"sparc64") "sun4u"|"sun4v"|"sparc64")
PLATFORM=sparcv9 PLATFORM=sparcv9

@ -41,8 +41,8 @@
#include "gcc/sparcv9/ck_pr.h" #include "gcc/sparcv9/ck_pr.h"
#elif defined(__ppc64__) #elif defined(__ppc64__)
#include "gcc/ppc64/ck_pr.h" #include "gcc/ppc64/ck_pr.h"
#elif defined(__powerpc__) #elif defined(__ppc__)
#include "gcc/powerpc/ck_pr.h" #include "gcc/ppc/ck_pr.h"
#elif defined(__GNUC__) #elif defined(__GNUC__)
#include "gcc/ck_pr.h" #include "gcc/ck_pr.h"
#else #else

Loading…
Cancel
Save