diff options
author | Bruno Haible <bruno@clisp.org> | 2008-08-17 09:19:18 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-08-17 09:19:18 +0000 |
commit | 2ca6f8fac0850def62b8eb705373a8bdaaa1c2c2 (patch) | |
tree | 34ba5aad56ca117a812e085e0ccab4a16e4b6105 | |
parent | bebb8cc2f89c4ac5e6a7dbebac6944bada0929fa (diff) | |
download | gperf-2ca6f8fac0850def62b8eb705373a8bdaaa1c2c2.tar.gz |
Explain how to create universal binaries on MacOS X.
-rw-r--r-- | INSTALL | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -81,6 +81,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 ================== |