[R-SIG-Mac] Building binary packages for distribution

Roy Mendelssohn roy.mendelssohn at noaa.gov
Fri Apr 13 18:29:10 CEST 2012


On Apr 13, 2012, at 8:36 AM, Prof Brian Ripley wrote:

> I have hitherto used a Leopard system to build Mac binary packages for distribution, but that system has died and we only have Lion systems left (and the replacement hardware only runs Lion).  I'm only concerned with building i386/x86_64 packages.
> 
> We saw problems with packages built on Snow Leopard which would not run on Leopard, and the trick was to use -mmacosx-version-min=10.5 for compiling and linking.
> 
> Does anyone know for certain if that suffices?  And does setting the environment variable MACOSX_DEPLOYMENT_TARGET to 10.5 do the same thing?  (My man pages suggest so, but I don't trust Apple's documentation to be current.)
> 
> Brian Ripley



I posted this on the FInk mailing list.   I received the following response from Alexander Hansen, who does a lot of the package upkeep at Fink. YMMV.

-Roy M.

> Good question.  I'd have to answer "it depends".
> 
> I'd expect that setting MACOSX_DEPLOYMENT_TARGET or using -mmacosx-version-min=10.5 will work a good fraction of the time.  (I don't happen to know if they're identical in all cases).
> 
> However, in Lion's Xcode releases there is no 10.5SDK (at least that I have been able to find), and so any packages that really need 10.5-specific headers/libs won't have the option to use 'sysroot' to build against a 10.5 setup.


**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



More information about the R-SIG-Mac mailing list