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: Peter O'Gorman <email@hidden>
- Date: Tue, 03 Feb 2009 10:13:21 -0600
Tim Lee wrote:
> Macports was just an example build. You could substitute any open-source package for Macports.
>
> I'm more interested in how to properly compile autoconf'd unix applications for 10.4 while building on 10.5.
>
> Specifically, what is the correct env settings (CFLAGS, LDFLAGS)? Is MACOSX_DEPLOYMENT_TARGET required? Is it deprecated?
>
For automake based projects there is no need to add -Wl,-syslibroot,...
because automake uses CFLAGS/CXXFLAGS/FFLAGS etc when linking, so as
long as CFLAGS/CXXFLAGS etc contains -isysroot you should be fine.
GNU libtool looks at the MACOSX_DEPLOYMENT_TARGET environment variable
during configure, so if the project uses GNU libtool (especially older
versions), you should set and export MACOSX_DEPLOYMENT_TARGET during
configure and build.
You can also add -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}, if
you like, though it might cause a warning, I don't recall.
Now for the usual disclaimer: Just because something builds fat does not
mean that all architectures will work. configure tests may not return
the same results for each arch, you really should be careful, configure
for each individual arch and compare config.status, config.h, and the
Makefiles, test all the architectures in the build result etc.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
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