• 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
Configure and multiple OS X archs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Configure and multiple OS X archs


  • Subject: Configure and multiple OS X archs
  • From: Andre-John Mas <email@hidden>
  • Date: Fri, 21 Dec 2007 18:27:02 -0500

Hi,

I am trying to modify a configure script so that it supports generating
of a universal binary (PPC & ix86). What I want to do is ensure that
a universal binary is created, when the necessary SDK is available
and the user had not explicitly stated they don't want a universal
binary. Does this look right:

#fix_mac_groups
#fix_parameters $JPATH/lib/javax.comm.properties
if test "x$enable_universal" != xno; then
if test -d "/Developer/SDKs/MacOSX10.4u.sdk"; then
echo "library os.arch... universal (i386 ppc)"
CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk - arch i386 -arch ppc"
LDFLAGS="-arch i386 -arch ppc"
else
echo "Warning: no universal SDK, will not build universal"
echo "library os.arch... "${OS_ARCH}
fi
else
echo "User disabled building of universal library"
echo "library os.arch... "${OS_ARCH}
fi


Additionally, will a 32-bit x86 library run on a 64-bit Mac, or should
I be adding support for x86_64? If the latter, what SDK dependencies
are required?

Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Configure and multiple OS X archs
      • From: Peter O'Gorman <email@hidden>
  • Prev by Date: RE: Linker error
  • Next by Date: Re: Configure and multiple OS X archs
  • Previous by thread: Re: DTrace and C++ function
  • Next by thread: Re: Configure and multiple OS X archs
  • Index(es):
    • Date
    • Thread