Re: Configure and multiple OS X archs
Re: Configure and multiple OS X archs
- Subject: Re: Configure and multiple OS X archs
- From: Andre-John Mas <email@hidden>
- Date: Sat, 22 Dec 2007 14:34:24 -0500
On 22-Dec-07, at 11:51 , Peter O'Gorman wrote:
Andre-John Mas wrote:
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"
Please do not replace any CFLAGS or LDFLAGS that a user may have
specified:
CFLAGS="$CFLAGS -arch i386 -arch ppc"
LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
is much better because, for example, a gentoo user can then do:
./configure CFLAGS="-O3 -funroll-loops" .... or whatever they like :-)
Thanks for that.
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