|
From: <cod...@go...> - 2008-12-29 17:34:16
|
Author: jam...@us...
Date: Mon Dec 29 09:33:01 2008
New Revision: 379
Modified:
/ (props changed)
trunk/hoc/HOC.cabal
Log:
Placed 'c-sources' line back into cabal file. I thought this had fixed
ghc-6.10 builds, but it turns out the problem was deeper than I thought.
Essentially, this line was fooling Cabal into including
dist/build/HOC_cbits.o in the built library. Under earlier versions of
GHC, the ghc call that the cabal generates to handle this "C source" is
silently ignored because it is calling 'ghc -c' on an object file. With
ghc 6.10.1, the call dies violently with "no input files".
I have dug around a bit in the cabal api, but not yet found any way of
achieving the desired effect, so for now I'm going to have to re-open issue
10 and put the line back.
Modified: trunk/hoc/HOC.cabal
==============================================================================
--- trunk/hoc/HOC.cabal (original)
+++ trunk/hoc/HOC.cabal Mon Dec 29 09:33:01 2008
@@ -57,6 +57,7 @@
hs-source-dirs: HOC
extra-libraries: objc, ffi
+ c-sources: HOC_cbits.o
if os(darwin)
include-dirs: /usr/include/ffi
frameworks: Foundation
|