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:
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.
-Judah