Patchwork [v2,3/7] configure: Allow command-line configure for ppc32

login
register
mail settings
Submitter Richard Henderson
Date Sept. 10, 2013, 12:28 a.m.
Message ID <1378772902-4074-4-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/273727/
State New
Headers show

Comments

Richard Henderson - Sept. 10, 2013, 12:28 a.m.
Similar to manually selecting i386 for an x86_64 host.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 configure | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch

diff --git a/configure b/configure
index e989609..24f54f3 100755
--- a/configure
+++ b/configure
@@ -955,6 +955,14 @@  for opt do
 done
 
 case "$cpu" in
+    ppc)
+           CPU_CFLAGS="-m32"
+           LDFLAGS="-m32 $LDFLAGS"
+           ;;
+    ppc64)
+           CPU_CFLAGS="-m64"
+           LDFLAGS="-m64 $LDFLAGS"
+           ;;
     sparc)
            LDFLAGS="-m32 $LDFLAGS"
            CPU_CFLAGS="-m32 -mcpu=ultrasparc"