Commit 0e7a5fb9 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Pass -m32 to gcc on i386 and ppc OS X

This makes GHC work even if you are actually running it in 64bit mode,
e.g. on OS X 10.6 Snow.
parent c56aacad
......@@ -242,6 +242,10 @@ case $host in
;;
i386-apple-darwin|powerpc-apple-darwin)
soext='.dylib'
CFLAGS="$CFLAGS -m32"
LDFLAGS="$LDFLAGS -m32"
SRC_CC_OPTS="$SRC_CC_OPTS -m32"
SRC_LD_OPTS="$SRC_LD_OPTS -m32"
;;
x86_64-apple-darwin)
soext='.dylib'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment