Add framework flags when linking a dynamic library
authorChristiaan Baaij <christiaan.baaij@gmail.com>
Wed, 5 Aug 2015 12:20:56 +0000 (14:20 +0200)
committerBen Gamari <ben@smart-cactus.org>
Wed, 5 Aug 2015 12:45:16 +0000 (14:45 +0200)
commitdd7e1880ae078a2d9f254dc5d8f330121e0ec291
tree71c08aacc829740cce52e3629eba9e55cdbdd7c9
parent85179b5821bb1010eede7cec43280c2cd7e59bd3
Add framework flags when linking a dynamic library

This fixes the GHC side of trac #10568. So `cabal install
--ghc-options="-framework GLUT" GLUT` creates a correctly linked
GLUT.dylib. We still need to explictly pass `--ghc-options="-framework
GLUT"` because the Cabal side #10568 is not fixed.

Update: the Cabal side of #10568 is fixed by
[Cabal#2747](https://github.com/haskell/cabal/pull/2747)

Test Plan: validate

Reviewers: austin, rwbarton, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D1115

GHC Trac Issues: #10568
compiler/main/DriverPipeline.hs
compiler/main/SysTools.hs