From: Bruno Haible Date: Sun, 17 Aug 2008 09:29:37 +0000 (+0000) Subject: Explain how to create universal binaries on MacOS X. X-Git-Tag: v0.18~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cacaf090b480ee62d17fcfa7b6295101bc7354e;p=thirdparty%2Fgettext.git Explain how to create universal binaries on MacOS X. --- diff --git a/INSTALL b/INSTALL index 2b442edf8..fe54f9ea8 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 ================== diff --git a/autoconf-lib-link/INSTALL b/autoconf-lib-link/INSTALL index e694669cb..44287b7cd 100644 --- a/autoconf-lib-link/INSTALL +++ b/autoconf-lib-link/INSTALL @@ -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 ================== diff --git a/gettext-runtime/INSTALL b/gettext-runtime/INSTALL index e694669cb..44287b7cd 100644 --- a/gettext-runtime/INSTALL +++ b/gettext-runtime/INSTALL @@ -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 ================== diff --git a/gettext-runtime/libasprintf/INSTALL b/gettext-runtime/libasprintf/INSTALL index e694669cb..44287b7cd 100644 --- a/gettext-runtime/libasprintf/INSTALL +++ b/gettext-runtime/libasprintf/INSTALL @@ -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 ================== diff --git a/gettext-tools/INSTALL b/gettext-tools/INSTALL index e694669cb..44287b7cd 100644 --- a/gettext-tools/INSTALL +++ b/gettext-tools/INSTALL @@ -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 ==================