Skip to content

compiling packages without Framework and CoreFoundation options on OSX

2 messages · Jeff D. Hamann, Simon Urbanek

#
Jeff,
On Oct 7, 2009, at 18:48 , Jeff Hamann wrote:

            
You're confusing entirely different things here - "-Wl,-framework - 
Wl,CoreFoundation" is simply a safe form of "-framework  
CoreFoundation" which means that R uses the CoreFoundation framework  
which is part of OS X. It has nothing to do with the --enable-R- 
framework option which is about creating *R* as a framework.
Note the "-lR" which is caused by --enable-R-framework=no, in the  
normal R on OS X you'd have seen "-framework R" instead.
If you install it on other OS, you'll get entirely different switches,  
of course. CF is needed on OS X for certain OS-specific functionality  
such as locales support, Quartz graphics etc.

Clearly, a binary is specific for given OS, so you have to build a  
binary of your package for each single OS you want to support in  
binary form (with different switches each time).
"XCode compiler" is gcc, so, no.
It's roughly the same as -l but it's more powerful as it covers  
umbrellas, resources etc. You may want to read more about frameworks:
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFrameworks/Frameworks.html
Not really without hacking R.
I have the suspicion that you're heading in a very wrong direction  
(but you didn't tell us what you're really up to so that's just a  
speculation). It should be entirely irrelevant for you what switches  
are used, because packages get all necessary switches from R, so they  
never need to worry about them. If you do, then it's highly likely  
that you're doing something wrong.

Cheers,
Simon