Ticket #189 (new enhancement)
Handle framework paths (-F) in Cabal
|Reported by:||guest||Owned by:|
|GHC Version:||6.8.2||Platform:||Mac OS|
There's been some discussion on the GHC trac ( 1931, 1798, 1395) about adding framework search paths (gcc's -F flag, and ghc's -framework-path flag). Currently Cabal handles -framework, but not -framework-path.
I propose the following behavior for Cabal:
- Add a framework-path: field which will pass -framework-path to ghc and -F to gcc, hsc2hs, et. al.
- Always add -F$HOME/Library/Frameworks as an argument to the above programs (regardless of any framework-path entries).
I believe #1 to be uncontroversial. My reasoning for #2 is the following:
- $HOME/Library/Frameworks is the standard location to put frameworks if you do not have administrative access.
- Without it, readline.cabal (e.g.) would need
framework-path: /Users/judah/Library/Frameworkswhich is not portable between machines.
Finally, note that these flags only affect build behavior, not runtime loading of libraries (which searches $HOME/Library/Frameworks by default). See OSXFrameworks for more info.