[92109] trunk/base/src/port1.0/portconfigure.tcl

Joshua Root jmr at macports.org
Fri Apr 20 06:02:57 PDT 2012


On 2012-4-20 05:24 , Jeremy Huddleston wrote:
> 
> On Apr 19, 2012, at 02:59, Joshua Root wrote:
> 
>> Is this going to work right for users targeting 10.4 from a later OS?
>> Some Xcode versions at least give you error messages about gcc-4.2 not
>> being compatible with the 10.4u SDK.
> 
> Setting the development target and setting the SDK are two separate issues.

Sure, but when targeting an older OS, MacPorts will always use the SDK
if available.

> I'm able to target 10.4 just fine with gcc-4.2 on Leopard's Xcode 3.1.4 using either the system SDK or the 10.4u SDK:
> 
> ~ $ xcodebuild -version
> Xcode 3.1.4
> Component versions: DevToolsCore-1204.0; DevToolsSupport-1186.0
> BuildVersion: 9M2809
> 
> ~ $ /usr/bin/gcc-4.2 --version
> i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> ~ $ /usr/bin/gcc-4.2 -arch i386 -arch x86_64 -arch ppc -arch ppc64 -mmacosx-version-min=10.4 nop.c
> 
> ~ $ /usr/bin/gcc-4.2 -arch i386 -arch x86_64 -arch ppc -arch ppc64 -mmacosx-version-min=10.4 nop.c -isysroot /Developer/SDKs/MacOSX10.4u.sdk

What about these cases?

<http://www.google.com/search?q=%22GCC+4.2+is+not+compatible+with+the+Mac+OS+X+10.4+SDK%22+site%3Amacports.org&btnG=Search&hl=en&gbv=1>

- Josh


More information about the macports-dev mailing list