[GHC] #2021: let ghc find framework header files and link with
frameworks located in $HOME/Library/Frameworks
GHC
trac at galois.com
Mon Jan 7 20:12:51 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:
Component: Compiler | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: Multiple
Os: MacOS X |
-----------------------------+----------------------------------------------
Comment (by guest):
Replying to [comment:1 thorkilnaur]:
>
> If the problem is that GHC is not able to pass enough framework-related
parameters to gcc, ld, and possibly other programs, then that is the
problem to be solved. That would also allow someone to store local
frameworks in any desired location, in addition to
$HOME/Library/Frameworks.
GHC can pass -F (the only relevant parameter, I believe) to `gcc` and `ld`
just fine. The problem IMHO is that there's no way to run the build of
ghc+libraries as a whole against an extra framework directory without
editing several different `Makefile` and/or `.cabal` files.
I think this problem will be solved when at most one change is required
to, for example, link the build against a version of
`GNUreadline.framework` which is in a nonstandard location. That "change"
could be one of (but not limited to): editing `mk/build.mk` or
`readline.cabal`, or passing a configure flag.
Incidentally, the above was my reason for proposing the following Cabal
enhancement: http://hackage.haskell.org/trac/hackage/ticket/189
-Judah
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2021#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list