MacArthur, Ian (SELEX GALILEO, UK) wrote:
> I think Greg posted some notes about that here, although it was a while
> back... IIRC, he was passing multiple -arch (i386 | ppc | etc) commands
> to gcc to get it to build fat "naturally".
Yes; see:
http://article.gmane.org/gmane.comp.lib.fltk.general/11567
Re-quoting here:
---- snip
#!/bin/csh -f
make clean
# CONFIGURE FLTK FOR UNIVERSAL (PPC+INTEL) BUILD
./configure --enable-localjpeg \
--enable-localpng \
--enable-gl \
--enable-localzlib \
CXX=g++ \
CXXFLAGS="-arch i386 -arch ppc" \
LDFLAGS="-arch i386 -arch ppc" \
CFLAGS="-arch i386 -arch ppc"
# HACK THE makeinclude FILE
# Do things we can't currently seem to control with configure:
#
# o Disable the .SILENT flag so compile commands are shown
#
# o Make sure any CXX=gcc is changed to CXX=g++.
# (For some reason the above CXX=g++ configure argument doesn't work)
#
( echo ':g/^.SILENT/s//#.SILENT/g'; \
echo ':g/^CXX.*gcc$/s//CXX=g++/g'; \
echo :wq ) | ex makeinclude
# DO THE BUILD
make
---- snip
I believe the correct Apple terminology for these 'fat' binaries
are "universal binaries".
BTW, I think the OP mentioned building universal bins on a PPC platform.
I'm not sure, but I *think* some optional package needed to be installed
to get PPC machines to build for intel; I have some hazy recollection
Mike posted some details. I've been doing all my univ builds on intel,
which "comes with" everything you need to build universal ppc/intel
bins.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk