make PPC/Linux buildable on ppc64 hosts
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 27 Nov 2011 13:04:00 +0000 (05:04 -0800)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 27 Nov 2011 13:57:00 +0000 (15:57 +0200)
contrib/sb-grovel/def-to-lisp.lisp
src/runtime/Config.ppc-linux

index 7aca291..e8bcc3d 100644 (file)
@@ -205,7 +205,7 @@ code:
                       '("-D_LARGEFILE_SOURCE"
                         "-D_LARGEFILE64_SOURCE"
                         "-D_FILE_OFFSET_BITS=64")
-                      #+(and x86 linux) '("-m32")
+                      #+(and (or x86 ppc) linux) '("-m32")
                       #+(and x86-64 darwin inode64)
                       '("-arch" "x86_64"
                         "-mmacosx-version-min=10.5"
index f9d54cd..21fedc9 100644 (file)
@@ -9,8 +9,8 @@
 # provided with absolutely no warranty. See the COPYING and CREDITS
 # files for more information.
 
-CFLAGS = -g
-LINKFLAGS += -v -rdynamic
+CFLAGS = -g -m32
+LINKFLAGS += -v -rdynamic -m32
 NM = ./linux-nm
 
 ASSEM_SRC = ppc-assem.S ldso-stubs.S