|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Yeah I didn't read the release notes carefully enough. Shame on me. ;) I'll try to make up for it by posting an example of how I've integrated building for Universal Binaries into my configure.ac script: We create the "--enable-universal-binary" option with: AC_ARG_ENABLE(universal-binary, AS_HELP_STRING([--enable-universal-binary], [build as Universal Binary (Mac OS X Only)]), [], [enabled_universal_binary="no"]) ---------------------------------------------------------------- Then, in the darwin-specific section: ---------------------------------------------------------------- *darwin*) framer="darwin" platform="darwin" AC_DEFINE(DARWIN) DARWINLIBS=" -framework CoreFoundation -lresolv" AS_IF([test "$enable_universal_binary" = "yes"],[ # Check to see if the system has xcode-select (Mac OS X 10.5 "Leopard" or later). # This is necessary if the user has installed their development SDKs somewhere # other than the default location (/Developer) # if xcode-select doesn't exist, assume the tools are in /Developer AC_CHECK_FILE([/usr/bin/xcode-select],[ sysroot=`/usr/bin/xcode-select -print-path` ],[ sysroot="/Developer" ]) AC_MSG_CHECKING([For Mac OS X SDK Path]) AC_MSG_RESULT([$sysroot]) CFLAGS="$CFLAGS -isysroot $sysroot/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="$LDFLAGS -arch i386 -arch ppc" ], []) ;; And of course, following technote 2137's advice about disabling dependency tracking: ./configure --enable-universal-binary --disable-dependency-tracking The output looks something like this on Leopard: checking for /usr/bin/xcode-select... yes checking For Mac OS X SDK Path... /Developer Hope it helps someone. :) - Terry On Oct 31, 2007, at 12:39 AM, Chris Hanson wrote:
|
_______________________________________________ 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: | |
| >Question about building Universal Binaries in Leopard with transient <Xcode directory> (From: Terry Simons <email@hidden>) | |
| >Re: Question about building Universal Binaries in Leopard with transient <Xcode directory> (From: Chris Hanson <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.