• 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:48:33 -0500
  • Sensitivity: Normal

Thanks for the response William!

So you do not set LDFLAGS? Isn't syslibroot important for ld?

Tim


---- William Kyngesburye <email@hidden> wrote:
> Something like this usually works for me (I usually don't use -mmacosx-
> version-min):
>
> export MACOSX_DEPLOYMENT_TARGET=10.4
> ./configure --disable-dependency-tracking CFLAGS="-Os -arch ppc -arch
> i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
>
> --disable-dependency-tracking is important, if it's an available
> option, when compiling universal.  Add CXXFLAGS if it's C++ source,
> though some C++ projects just use CFLAGS.
>
> The above assumes that the project uses CFLAGS for compiling AND
> linking (many do).  If it separates compiling and linking flags, then:
>
> export MACOSX_DEPLOYMENT_TARGET=10.4
> ./configure --disable-dependency-tracking CFLAGS="-Os -arch ppc -arch
> i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" LDFLAGS="-arch ppc -
> arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
>
> Note that this only works for projects that use at least libtool
> v1.5.22 (maybe slightly earlier version?).  Earlier versions will
> strip out isysroot and/or arch flags unless protected by -Xcompiler or
> -Xlinker/XCClinker flags (it's been a while since I used those so I
> don't remember the details).
>
> I have a wiki page of notes about universal builds of 'nix software
> with more details. Some may be a little specific to my porting builds,
> but it should be generally applicable. (I just realized I should add
> some info about updating libtool in a project.)
>
> http://www.kyngchaos.com/macosx:notes:universal64
>
> On Feb 3, 2009, at 9:53 AM, 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?
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> Theory of the Universe
>
> There is a theory which states that if ever anyone discovers exactly
> what the universe is for and why it is here, it will instantly
> disappear and be replaced by something even more bizarrely
> inexplicable.  There is another theory which states that this has
> already happened.
>
> -Hitchhiker's Guide to the Galaxy 2nd season intro
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Unix-porting 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

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