From 2e56f76651e3ec7790aa51c22089e8eb0061c1b4 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Jun 15 2013 08:17:44 +0000 Subject: PR#5178: document in INSTALL how to build a 32-bit version under Linux x86-64 git-svn-id: http://caml.inria.fr/svn/ocaml/version/4.01@13781 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- diff --git a/Changes b/Changes index ee05799..75bfc40 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,4 @@ -Next version +OCaml 4.01: ------------ (Changes that can break existing programs are marked with a "*") @@ -61,6 +61,7 @@ Bug fixes: * PR#5119: camlp4 now raises a specific exception when 'DELETE_RULE' fails, rather than raising 'Not_found' - PR#5121: %( %) in Format module seems to be broken +- PR#5178: document in INSTALL how to build a 32-bit version under Linux x86-64 - PR#5212: Improve ocamlbuild error messages of _tags parser - PR#5240: register exception printers for Unix.Unix_error and Dynlink.Error - PR#5300: ocamlbuild: verbose parameter should implicitly set classic display diff --git a/INSTALL b/INSTALL index 98dfd31..e5c8f93 100644 --- a/INSTALL +++ b/INSTALL @@ -151,21 +151,22 @@ Examples: or: ./configure -prefix /usr -mandir '$(PREFIX)/man/manl' - On a MacOSX 10.5/Intel Core 2 or MacOSX 10.5/PowerPC host, - to build a 64-bit version of OCaml: - ./configure -cc "gcc -m64" - - On a MacOSX 10.6/Intel Core 2, to build a 32-bit version of OCaml: - ./configure -cc "gcc -m32" -as "as -arch i386" -aspp "gcc -m32 -c" - On a Linux x86/64 bits host, to build a 32-bit version of OCaml: - ./configure -cc "gcc -m32" -as "as --32" -aspp "gcc -m32 -c" + ./configure -cc "gcc -m32" -as "as --32" -aspp "gcc -m32 -c" \ + -host i386-linux -partialld "ld -r -melf_i386" On a Linux x86/64 bits host, to build the run-time system in PIC mode (enables putting the runtime in a shared library, at a small performance cost): ./configure -cc "gcc -fPIC" -aspp "gcc -c -fPIC" + On a MacOSX 10.5/Intel Core 2 or MacOSX 10.5/PowerPC host, + to build a 64-bit version of OCaml: + ./configure -cc "gcc -m64" + + On a MacOSX 10.6/Intel Core 2, to build a 32-bit version of OCaml: + ./configure -cc "gcc -m32" -as "as -arch i386" -aspp "gcc -m32 -c" + For Sun Solaris with the "acc" compiler: ./configure -cc "acc -fast" -libs "-lucb"