From: <cod...@go...> - 2009-09-27 10:33:26
|
Revision: 413 Author: wol...@gm... Date: Sun Sep 27 03:32:50 2009 Log: Fix build issue on Snow Leopard by forcing 32-bit mode for cbits build (issue #22) Thanks to AntoineVanGelderJnr for the patch. http://code.google.com/p/hoc/source/detail?r=413 Modified: /trunk/hoc/Setup.hs ======================================= --- /trunk/hoc/Setup.hs Mon Aug 17 15:34:07 2009 +++ /trunk/hoc/Setup.hs Sun Sep 27 03:32:50 2009 @@ -174,7 +174,7 @@ ++ ["-l" ++ lib | lib <- extraLibs buildInfo] ++ ["-framework " ++ fw | fw <- frameworks buildInfo] - let cmd = "gcc -r -nostdlib -I`ghc --print-libdir`/include " + let cmd = "gcc -m32 -r -nostdlib -I`ghc --print-libdir`/include " ++ unwords cflags ++ " HOC_cbits/*.m -o " ++ cbitsObjectFile |