[GHC] #2021: let ghc find framework header files and link with frameworks located in $HOME/Library/Frameworks

GHC trac at galois.com
Tue Jan 15 11:17:24 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):

 It is still important to change `DriverPipline.hs` in order to find header
 files given by framework paths on the command line or in package.conf
 files!

 In order to omit searching the home directory change my above
 `getFrameworkPathOpts` to:

 {{{
 -- options to pass to gcc and ld on macs only
 getFrameworkPathOpts  :: DynFlags -> [PackageId] -> IO [String]
 getFrameworkPathOpts dflags pkgs = do
   ps <- getPackageFrameworkPath dflags pkgs
   return $ map ("-F" ++) $ ps ++ frameworkPaths dflags
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2021#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list