
28 Jun
2014
28 Jun
'14
3:42 p.m.
On Sat, 28 Jun 2014 08:31:41 -0700
Mark Lentczner
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#... -- Sergei