This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: how do you build a 64-bit library on IRIX
- To: GSL Discussion List <gsl-discuss at sources dot redhat dot com>
- Subject: Re: how do you build a 64-bit library on IRIX
- From: Charlie Zender <zender at uci dot edu>
- Date: Mon, 8 Oct 2001 15:16:04 -0700
- CC: Charles Yee <yee at ll dot mit dot edu>
- Reply-To: Charlie Zender <zender at uci dot edu>
It looks to me like you are using the correct flags (-mabi=64)
but that somewhere, somehow, you are attempting to link to a 32 bit
object file. Many IRIX systems keep the 32-bit and 64-bit versions
in different locations so make sure you are pointing to the correct
ABI libraries (with -L flag to linker)
Here are the flags I use to build 64 bit libraries on IRIX with gcc:
C++ := g++ -w
CC := gcc
GCC_ABI_FLG := -mabi=64
GCC_LDFLAGS_SZ_SPC := ${GCC_ABI_FLG} -mips4 -L/usr/local/lib/mabi=64
LDFLAGS += $(GCC_LDFLAGS_SZ_SPC)
CFLAGS += ${GCC_ABI_FLG} -O2 -Wall
C++FLAGS := ${CFLAGS}
Good luck,
Charlie
--
Charlie Zender zender@uci.edu (949) 824-2987/FAX-3256, Department of
Earth System Science, University of California, Irvine CA 92697-3100