aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-01-20 16:19:43 +0000
committerEli Zaretskii2007-01-20 16:19:43 +0000
commit5ebc76c996074bbff3e356de59ba64737639664d (patch)
treed042a2ca6825fde20c0c78a8e823e167d722d684
parent350b4cb9bbb255dbd4e8415d291f46511c52e212 (diff)
downloademacs-5ebc76c996074bbff3e356de59ba64737639664d.tar.gz
emacs-5ebc76c996074bbff3e356de59ba64737639664d.zip
Describe how 32-bit and 64-bit versions of Emacs can be compiled on Solaris
systems.
-rw-r--r--etc/MACHINES16
1 files changed, 15 insertions, 1 deletions
diff --git a/etc/MACHINES b/etc/MACHINES
index 5821c2f4015..2d162338866 100644
--- a/etc/MACHINES
+++ b/etc/MACHINES
@@ -1021,11 +1021,25 @@ Sun 3, Sun 4 (sparc), Sun 386 (m68k-sun-sunos, sparc-sun-sunos, i386-sun-sunos,
1021 sparc-sun-sunos4.1.3noshr, sparc-sun-solaris2.*, 1021 sparc-sun-sunos4.1.3noshr, sparc-sun-solaris2.*,
1022 i386-sun-solaris2.*, sparc*-*-linux-gnu) 1022 i386-sun-solaris2.*, sparc*-*-linux-gnu)
1023 1023
1024 To build a 32-bit Emacs (i.e. if you are having any sort of problem
1025 bootstrapping a 64-bit version), you can use the Sun Studio compiler
1026 and configure Emacs with:
1027 env CC="cc -xarch=v7" CFLAGS='' ./configure # on SPARC systems
1028 env CC="cc -xarch=386" CFLAGS='' ./configure # on x86 systems
1029 On Solaris 2.10, it is also possible to use /usr/sfw/bin/gcc to build
1030 a 32-bit version of Emacs. Just make sure you point ./configure to
1031 the right compiler:
1032
1033 env CC='/usr/sfw/bin/gcc -m32' ./configure
1034
1024 To build a 64-bit Emacs (with larger maximum buffer size and 1035 To build a 64-bit Emacs (with larger maximum buffer size and
1025 including large file support) on a Solaris system which supports 1036 including large file support) on a Solaris system which supports
1026 64-bit executables, use the Sun compiler, configuring something like 1037 64-bit executables, use the Sun compiler, configuring something like
1027 this (see the cc documentation for information on 64-bit 1038 this (see the cc documentation for information on 64-bit
1028 compilation): env CC="cc -xarch=v9" ./configure 1039 compilation):
1040
1041 env CC="cc -xarch=v9" CFLAGS='' ./configure # on SPARC systems
1042 env CC="cc -xarch=amd64" CFLAGS='' ./configure # on x86 systems
1029 1043
1030 As of version 2.95, GCC doesn't support the 64-bit ABI properly, but 1044 As of version 2.95, GCC doesn't support the 64-bit ABI properly, but
1031 later releases may. 1045 later releases may.