]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Mention universal binaries in INSTALL.
authorBruno Haible <bruno@clisp.org>
Wed, 20 Aug 2008 04:16:40 +0000 (22:16 -0600)
committerEric Blake <ebb9@byu.net>
Wed, 20 Aug 2008 04:17:24 +0000 (22:17 -0600)
* doc/install.texi (Compiling For Multiple Architectures): Explain
how to create universal binaries on MacOS X.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/install.texi

index b9c14bc7f0442f3ab3514d109958154ad5b296c6..1a892f91701041a9e570040175bca5247c964bf3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-19  Bruno Haible  <bruno@clisp.org>
+       and Peter O'Gorman  <peter@pogma.com>
+
+       Mention universal binaries in INSTALL.
+       * doc/install.texi (Compiling For Multiple Architectures): Explain
+       how to create universal binaries on MacOS X.
+
 2008-08-19  Jim Meyering  <jim@meyering.net>
            Eric Blake  <ebb9@byu.net>
            Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
index e087629380cf7c408b0fd26fd600674654cf429c..362be5941ed4fc5b9bc7177b2a737e8cc750db1a 100644 (file)
@@ -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,22 @@ architecture at a time in the source code directory.  After you have
 installed the package for one architecture, use @samp{make distclean}
 before reconfiguring for another architecture.
 
+On MacOS X 10.5 and later systems, you can create libraries and
+executables that work on multiple system types---known as @dfn{fat} or
+@dfn{universal} binaries---by specifying multiple @option{-arch} options
+to the compiler but only a single @option{-arch} option to the
+preprocessor.  Like this:
+
+@example
+./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 -E" CXXCPP="g++ -E"
+@end example
+
+This is not guaranteed to produce working output in all cases, you may
+have to build one architecture at a time and combine the results
+using the @command{lipo} tool if you have problems.
+
 @node Installation Names
 @section Installation Names