]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Explain how to create universal binaries on MacOS X.
authorBruno Haible <bruno@clisp.org>
Sun, 17 Aug 2008 09:29:37 +0000 (09:29 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:47 +0000 (12:15 +0200)
INSTALL
autoconf-lib-link/INSTALL
gettext-runtime/INSTALL
gettext-runtime/libasprintf/INSTALL
gettext-tools/INSTALL

diff --git a/INSTALL b/INSTALL
index 2b442edf8bb1ce7ec4622560644e96a73c8526af..fe54f9ea80195d11e269adc0492d30d3628df542 100644 (file)
--- 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
 ==================
 
index e694669cb91c640b72522a026dcc0dde1ad7ce3f..44287b7cde31dd771754cc4c80eef36e39aab11d 100644 (file)
@@ -76,6 +76,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
 ==================
 
index e694669cb91c640b72522a026dcc0dde1ad7ce3f..44287b7cde31dd771754cc4c80eef36e39aab11d 100644 (file)
@@ -76,6 +76,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
 ==================
 
index e694669cb91c640b72522a026dcc0dde1ad7ce3f..44287b7cde31dd771754cc4c80eef36e39aab11d 100644 (file)
@@ -76,6 +76,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
 ==================
 
index e694669cb91c640b72522a026dcc0dde1ad7ce3f..44287b7cde31dd771754cc4c80eef36e39aab11d 100644 (file)
@@ -76,6 +76,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
 ==================