On Sat, 28 Jun 2014 08:31:41 -0700
Mark Lentczner <mark.lentcz...@gmail.com> 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/build.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.

http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#forcing-options-through

-- 

  Sergei

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to