This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how do you build a 64-bit library on IRIX



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]