In order to compile for 64 bit on IRIX you have to specify the native compiler in 64 bit mode (
cc -64) and the linker in 64 bit mode (
/bin/ld -64). The following notes were provided by Jose Ramon Valverde2.1.
We have succeeded in compiling EMBOSS for IRIX using 64 bit compilation.
It required some tweaking, but works. The recipe for those willing to give it a try is:
gcc' from your path
COMPILER_DEFAULTS_PATHappropriately (see
pe_environ) to look for a
compiler.defaultsfile containing e.g.
:abi=64:isa=4:proc=r10k
./configurein EMBOSS and all EMBASSY subdirs
CC = cc' and substitute it for '
CC = cc -64'
LD = /bin/ld' to '
LD = /bin/ld -64'
make
The reason is that compiling depends on the Makefile and on libtool, as well as linking. We didn't spend much in looking at configure since the above steps where so straightforward. We know we should look into the configure script and add an option for 64-bit-irix-compile or some such, but that'll have to wait till we have time for it.
Yes, we know, the search and substitute thing looks tedious, but it isn't, honest: create a 'chfile.sh' out of the EMBOSS source hierarchy containing:
#/bin/sh cp \$1 \$1.orig mv \$1 tmpfile sed -e 's/CC="cc"/CC="cc -64"/g' tmpfile | \ sed -e 's/CC = cc/CC = cc -64/g' | \ sed -e 's/\/bin\/ld/\/bin\/ld -64/g' \$1 rm tmpfile ## if you are sure, uncomment this #rm \$1.orig
' cd
' to the emboss
directory and run
find . -type f -exec /path/to/chfile.sh {} \; -print
and you are done with the CC changes. Libtool requires special treatment since it uses quotes.