On Apr 28, 2010, at 09:01, Dominik Reichardt wrote:

> Am 28.04.2010 um 12:52 schrieb Joshua Root:
> 
>>>> You can easily add the appropriate flags in a local copy of the port.
>>>> Cross-compiling will probably never be a supported configuration BTW.
>>> 
>>> Thanks Ryan and Joshua, now I know why that didn't work :)
>>> 
>>> What are the appropiate flags? These 
>>> http://guide.macports.org/#reference.phases.configure.universal ?
>>> I tried with those and didn't succeed in getting SDL to compile with the 
>>> 10.4 SDK. As the examples are missing, I probably used them wrong. Can you 
>>> give me any pointers?
>> 
>> The default flags listed there for PowerPC Tiger, minus the -arch ones,
>> are what you need to use the 10.4u SDK.
> 
> I just tried and it fails for me on SDL's configure with the error 
> "configure: error: C compiler cannot create executables"
> I attached a zip with the port file, the port install debug output and the 
> config.log.

config.log says:

configure:2608: /usr/bin/gcc-4.0 -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I/opt/local/include 
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot 
/Developer/SDKs/MacOSX10.4u.sdk -L/opt/local/lib 
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk conftest.c  >&5
ld: library not found for -lcrt1.10.5.o

You probably still need to set MACOSX_DEPLOYMENT_TARGET to 10.4. In MacPorts, 
that's the configure.macosx_deployment_target variable.


_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to