• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 2009: macosx, autotools, build on leopard for tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2009: macosx, autotools, build on leopard for tiger


  • Subject: Re: 2009: macosx, autotools, build on leopard for tiger
  • From: Tim Lee <email@hidden>
  • Date: Tue, 3 Feb 2009 11:38:42 -0500
  • Sensitivity: Normal

Thanks for the reply Peter!
comments below...

---- Peter O'Gorman <email@hidden> wrote:
> 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.
>

So where should I set -syslibroot? If I set it in my LDFLAGS, I get errors.

> 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.
>

So all in all, what should my env settings look like?
CFLAGS?
LDFLAGS?
... and I think you've covered MACOSX_DEPLOYMENT_TARGET.

> 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

 _______________________________________________
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

References: 
 >Re: 2009: macosx, autotools, build on leopard for tiger (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: 2009: macosx, autotools, build on leopard for tiger
  • Next by Date: Re: Problem with (Saturn) Profiler
  • Previous by thread: Re: 2009: macosx, autotools, build on leopard for tiger
  • Next by thread: Re: 2009: macosx, autotools, build on leopard for tiger
  • Index(es):
    • Date
    • Thread