cc & ld extra flags

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


On Sat, 28 Jun 2014 08:31:41 -0700
Mark Lentczner <mark.lentczner at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140628/3572c6a8/attachment.sig>


More information about the ghc-devs mailing list