From: <cod...@go...> - 2009-09-27 10:22:25
|
Comment #2 on issue 22 by AntoineVanGelderJnr: HOC does not build under Snow Leopard http://code.google.com/p/hoc/issues/detail?id=22 Shouldn't be necessary, found the cause. gcc on Snow Leopard builds 64 bit object files by default but OSX ghc is still expecting 32 bits. Following patch fixes: Index: Setup.hs =================================================================== --- Setup.hs (revision 411) +++ Setup.hs (working copy) @@ -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 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings |