[GHC] #2021: let ghc find framework header files and link with
frameworks located in $HOME/Library/Frameworks
GHC
trac at galois.com
Fri Jan 18 05:30:45 EST 2008
#2021: let ghc find framework header files and link with frameworks located in
$HOME/Library/Frameworks
-----------------------------+----------------------------------------------
Reporter: maeder | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Compiler | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: Multiple
Os: MacOS X |
-----------------------------+----------------------------------------------
Comment (by maeder):
Summary:
1. Binaries linked against frameworks always find (matching) frameworks in
a user home directory since this is a feature of mac's dynamic linker.
2. Once #1975 is committed ghc should find frameworks for compiling (i.e.
inclusion of header files) and linking user code in a user home directory
by passing the option "`-framework-path $HOME/Library/Frameworks`"
3. To spare the above `-framework-path` option `DriverPipeline.hs` could
be extended or the final ghc shell script generated by
`driver/ghc/Makefile`
4. In order to compile/bootstrap ghc from sources using local frameworks
further additions to `configure.ac`, `readline/configure.ac` and
`libraries/Makefile` (or to cabal) are necessary (see #1395):
`-F$HOME/Library/Frameworks` need to be added to the configure files
`--hsc2hs-options="-C -F$(HOME)/Library/Frameworks" should go into
`libraries/Makefile`
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2021#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list