Add powerpc little-endian (ppc64le) flags
libgcc dependency was removed *just* for this target because the distros that use ppc64el doesn't have 32-bit support on it. * configure.ac: Add targets for powerpc64el and skip libgcc. * Makefile.am: Likewise.
This commit is contained in:
parent
3bac4caa2b
commit
872dec5684
1 changed files with 8 additions and 0 deletions
|
@ -119,6 +119,7 @@ if test "x$with_platform" = x; then
|
||||||
x86_64-*) platform=pc ;;
|
x86_64-*) platform=pc ;;
|
||||||
powerpc-*) platform=ieee1275 ;;
|
powerpc-*) platform=ieee1275 ;;
|
||||||
powerpc64-*) platform=ieee1275 ;;
|
powerpc64-*) platform=ieee1275 ;;
|
||||||
|
powerpc64le-*) platform=ieee1275 ;;
|
||||||
sparc64-*) platform=ieee1275 ;;
|
sparc64-*) platform=ieee1275 ;;
|
||||||
mipsel-*) platform=loongson ;;
|
mipsel-*) platform=loongson ;;
|
||||||
mips-*) platform=arc ;;
|
mips-*) platform=arc ;;
|
||||||
|
@ -141,6 +142,7 @@ case "$target_cpu"-"$platform" in
|
||||||
x86_64-none) ;;
|
x86_64-none) ;;
|
||||||
x86_64-*) target_cpu=i386 ;;
|
x86_64-*) target_cpu=i386 ;;
|
||||||
powerpc64-ieee1275) target_cpu=powerpc ;;
|
powerpc64-ieee1275) target_cpu=powerpc ;;
|
||||||
|
powerpc64le-ieee1275) target_cpu=powerpc ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check if the platform is supported, make final adjustments.
|
# Check if the platform is supported, make final adjustments.
|
||||||
|
@ -594,6 +596,12 @@ if test "x$target_cpu" = xi386 && test "x$platform" != xemu; then
|
||||||
TARGET_CFLAGS="$TARGET_CFLAGS -march=i386"
|
TARGET_CFLAGS="$TARGET_CFLAGS -march=i386"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test x$target_cpu = xpowerpc && test x$ac_cv_c_bigendian = xno; then
|
||||||
|
TARGET_CFLAGS="$TARGET_CFLAGS -mbig-endian"
|
||||||
|
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -mbig-endian"
|
||||||
|
TARGET_LDFLAGS="$TARGET_LDFLAGS -static -mbig-endian"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x$target_m32" = x1; then
|
if test "x$target_m32" = x1; then
|
||||||
# Force 32-bit mode.
|
# Force 32-bit mode.
|
||||||
TARGET_CFLAGS="$TARGET_CFLAGS -m32"
|
TARGET_CFLAGS="$TARGET_CFLAGS -m32"
|
||||||
|
|
Loading…
Reference in a new issue