XCode changes for svn-14612 (10.5/10.4 compatible)

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jeremyhu Offline
Junior Member
Posts: 34
Joined: Jan 2009
Reputation: 0
Post: #11
Yes, that is true that building +universal on 10.5 won't let you run it on 10.4. You need to take the extra step of setting your sysroot to be the 10.4u SDK.

Edit /opt/local/etc/macports/macports.conf
Change the universal_sysroot line (or add a new one if it's not present):

universal_sysroot /Developer/SDKs/MacOSX10.4u.sdk

---

I haven't tested it myself. I know that ports marked 'universal_variant no' will NOT use that SDK. What you can do is edit your CFLAGS so it's always used (and not just when +universal). Add this to your CFLAGS, CXXFLAGS, and LDFLAGS:

-isysroot /Developer/SDKs/MacOSX10.4u.sdk
find quote
Post Reply