Re: problem with example from Technical Note 2137 (Universal Binaries and Autoconf)
Re: problem with example from Technical Note 2137 (Universal Binaries and Autoconf)
- Subject: Re: problem with example from Technical Note 2137 (Universal Binaries and Autoconf)
- From: Heath Raftery <email@hidden>
- Date: Wed, 15 Feb 2006 03:43:31 +1100
Brant,
On 14/02/2006, at 8:25 AM, Brant Sears wrote:
I am trying to work through the example shown in Technical Note
2137. My system is a PowerPC (G5) system with XCode 2.2 installed.
I have used gcc_select to make sure that GCC 4 is selected.
I also reviewed this TN recently for another autoconf project, and
although I didn't configure Hello, I did see similar errors.
I downloaded the hello world sample from the Free Software
Foundation. I can configure and build it normally, but I cannot use
this example from the technical note:
env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" \
./configure --prefix=${HOME}/Hello --disable-dependency-tracking
<SNIP>
checking for C compiler default output... configure: error: C
compiler cannot create executables
FWIW, my experience is the same (G4 iMac, XCode 2.2, 10.4.4).
What is going on here? Has anyone else encountered this issue?
As I had fortunately already discovered with other autoconf projects,
the accepted way to _add_ compiler and linker flags is via the
XCFLAGS and XLDFLAGS variables respectively. I think you blow away
the defaults otherwise.
Try adding the X to the env variables. Works for me, and the build is
successful too.
Thanks.
Hope we can get this confirmed and then to the attention of the
documentation team.
<winmail.dat>
PS. You know you attached a winmail.dat file to a Mac orientated
mailing list?
PPS. How do you search for a specific TN by number these days? I
actually had a bit of trouble finding this one, and don't believe I
used to find it that hard.
Regards,
Heath
_______________________________________________
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