cc & ld extra flags

Sergei Trofimovich slyich at
Sat Jun 28 19:42:04 UTC 2014

On Sat, 28 Jun 2014 08:31:41 -0700
Mark Lentczner <mark.lentczner at> wrote:

> I'd like to build GHC, and all the base libs, with an extra flag supplied
> to cc (well gcc) and ld commands:
> I thought I could just add this to mk/
> SRC_CC_OPTS = -mmacos-version-min=10.7
> SRC_LD_OPTS = -mmacos-version-min=10.7
> But this seems very inconsistently applied. For example:

Hi Mark!

The best way to set all 3 vars:
SRC_CC_OPTS = -mmacos-version-min=10.7
SRC_LD_OPTS = -mmacos-version-min=10.7
SRC_HC_OPTS = -optc-mmacos-version-min=10.7 -optl-mmacos-version-min=10.7

and, maybe even -optP. CC/LD_OPTS is more for non-haskell code
from build system perspective.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list