summaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-08-17 09:29:37 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:47 +0200
commit6cacaf090b480ee62d17fcfa7b6295101bc7354e (patch)
tree8246444b1ab89f9eab096a24aa64c5540c32040b /INSTALL
parent50a9821d43912801ac3620eb27ad54964635dae9 (diff)
downloadexternal_gettext-6cacaf090b480ee62d17fcfa7b6295101bc7354e.zip
external_gettext-6cacaf090b480ee62d17fcfa7b6295101bc7354e.tar.gz
external_gettext-6cacaf090b480ee62d17fcfa7b6295101bc7354e.tar.bz2
Explain how to create universal binaries on MacOS X.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL11
1 files changed, 11 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 2b442ed..fe54f9e 100644
--- a/INSTALL
+++ b/INSTALL
@@ -83,6 +83,17 @@ in the source code directory. After you have installed the package for
one architecture, use `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 '-arch' options to the compiler but only a single
+'-arch' option to the preprocessor. Like this:
+
+ env 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" \
+ ./configure
+
Installation Names
==================