Changeset 30032 for trunk/base


Ignore:
Timestamp:
Oct 18, 2007, 7:20:11 PM (12 years ago)
Author:
eridius@…
Message:

Allow universal configure-based builds to work on Leopard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portconfigure.tcl

    r29604 r30032  
    6969
    7070# Universal options & default values.
     71if {[file exists /Developer/SDKs/MacOSX10.5.sdk]} {
     72    set sysroot "/Developer/SDKs/MacOSX10.5.sdk"
     73} else {
     74    set sysroot "/Developer/SDKs/MacOSX10.4u.sdk"
     75}
    7176options configure.universal_args                configure.universal_cflags configure.universal_cppflags configure.universal_cxxflags configure.universal_ldflags configure.universal_env
    7277default configure.universal_args                --disable-dependency-tracking
    73 default configure.universal_cflags              {"-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"}
     78default configure.universal_cflags              {"-isysroot $sysroot -arch i386 -arch ppc"}
    7479default configure.universal_cppflags    {}
    75 default configure.universal_cxxflags    {"-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"}
     80default configure.universal_cxxflags    {"-isysroot $sysroot -arch i386 -arch ppc"}
    7681default configure.universal_ldflags             {"-arch i386 -arch ppc"}
    7782
Note: See TracChangeset for help on using the changeset viewer.