[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: document how to create universal binaries
From: |
Bruno Haible |
Subject: |
Re: document how to create universal binaries |
Date: |
Sun, 17 Aug 2008 15:04:08 +0200 |
User-agent: |
KMail/1.5.4 |
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 <address@hidden>
* 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:
+
address@hidden
+./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"
address@hidden example
+
@node Installation Names
@section Installation Names