[Hackage] #536: c2hs needs to be given include dirs of dependent
packages
Hackage
trac at galois.com
Thu Apr 2 13:26:12 EDT 2009
#536: c2hs needs to be given include dirs of dependent packages
------------------------------+---------------------------------------------
Reporter: duncan | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Cabal-1.8
Component: Cabal library | Version: 1.6.0.2
Severity: normal | Keywords:
Difficulty: easy (<4 hours) | Ghcversion:
Platform: |
------------------------------+---------------------------------------------
Currently for c2hs we pass include dirs of the package itself. However for
hsc2hs we also pass the include dirs of dependent packages. This is
important because packages like base, rts etc have some special include
dirs that we need. Especially on Windows where the mingw header files are
in a special location that's recorded in the package info for base or rts.
This is needed for portably binding to things in the mingw Windows header
files, but also for generic posix things that happen to be defined in the
mingw header files.
It should not be too hard. Much of the code can be shared with the
existing code for hsc2hs.
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/536>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list