Greg Ercolano wrote:
> 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)

Previous versions of FLTK tried to avoid generating a dependence on
libstdc++ because C++ on Linux was notoriously unportable (thanks to
GCC changing the name mangling algorithm so many times and the libstdc++
folks making so many ABI changes as well...)

FLTK 1.1.9 shouldn't have this particular hack, so g++ should be used
automatically.

> #
> ( 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.

If you build on 10.5 you don't need anything special.  For 10.4 you
need to use the "10.4 universal SDK" - see Greg's previous post for
those options.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to