Andreas Schwab wrote:
> It is preferred to pass variable settings as arguments ...
You're right, of course. Here is a revised patch.
2008-08-17 Bruno Haible <[EMAIL PROTECTED]>
* doc/install.texi (Compiling For Multiple Architectures): Explain how
to create universal binaries on MacOS X.
--- doc/install.texi.bak 2008-03-14 01:46:05.000000000 +0100
+++ doc/install.texi 2008-08-17 15:02:18.000000000 +0200
@@ -6,7 +6,7 @@
@unnumbered Installation Instructions
Copyright @copyright{} 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004,
-2005, 2006, 2007 Free Software Foundation, Inc.
+2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
@@ -120,6 +120,18 @@
installed the package for one architecture, use @samp{make distclean}
before reconfiguring for another architecture.
+On MacOS X systems, you can create libraries and executables that work
+on multiple system types -- known as "fat" or "universal" binaries --
+by specifying multiple @option{-arch} options to the compiler but only
+a single @option{-arch} option to the preprocessor. Like this:
+
[EMAIL PROTECTED]
+./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CPP="gcc -arch ppc -E" \
+ CXXCPP="g++ -arch ppc -E"
[EMAIL PROTECTED] example
+
@node Installation Names
@section Installation Names
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf