Re: 2009: macosx, autotools, build on leopard for tiger
Re: 2009: macosx, autotools, build on leopard for tiger
- Subject: Re: 2009: macosx, autotools, build on leopard for tiger
- From: David Springer <email@hidden>
- Date: Tue, 3 Feb 2009 08:36:29 -0700
Hi Tim,
I use these gcc flags for compiling code that needs to run on G3 Tiger platforms:
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
You can use these flags for both compile and link phase if you use gcc as the link driver.
The thing to watch for is that you have arch ppc in your build products. You do not want and arch of ppc7400, this will not run on G3's and even some earlier G4's. file (man file) will tell you the arch's (e.g. file libMyLib.dylib)
- Dave.S
On Tue, Feb 3, 2009 at 8:23 AM, Tim Lee
<email@hidden> wrote:
Hello all!
I'm new to these lists (cross-referenced between xcode-users and unix-porting)!
Well, it's 2009 and there is still a large amount of debate on what the proper settings of environment variables are for porting unix programs to macosx. To be more specific, porting apps AND supporting tiger while building on leopard.
Some of my questions:
What environment variables need to be set?
I see a lot of debate between -mmacosx-version-min and MACOSX_DEPLOYMENT_TARGET. Is MACOSX_DEPLOYMENT_TARGET depcracated? So - whats the secret here?
How up to date is the "Porting UNIX/Linux Applications" manual (http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html#//apple_ref/doc/uid/TP40002850-BAJCFEBA)?
It looks like my gcc (leopard: gcc 4.0.1) is still needing to pass the args to ld through the -Wl,-syslibroot... way. Is this correct?
What are the proper CFLAGS args?
What are the proper LDFLAGS args?
And what about things like CXXFLAGS and CPPFLAGS.
Finally, how does autoconf fit in? Attempting to build Macports-1.7.0 without MACOSX_DEPLOYMENT_TARGET set (and trying to support tiger) I received a "ld: library not found for -lcrt1.10.5.o" message.
Any help offered would be great!
Thanks
-Tim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
http://go/OnlyCheckEmailTwiceADay - join the movement
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden