Howdy all!
I need to get a freeware scientific library to build on AIX in 64-bit,
and the way to do that is to use the -q64 options with compilers, and
the "-X64 cru" option with ar. But although I set ARFLAGs, I get only
the default "cru".
libtool: compile: xlc -DHAVE_CONFIG_H -I. -I.. -I../fortran -q64 -c
-M posixio.c -o posixio.o
/bin/sh ../libtool --tag=CC --mode=link xlc -q64
-version-info 4:0:0 -o libnetcdf.la -rpath /usr/local/lib
attr.lo ncx.lo putget.lo dim.lo error.lo \
libvers.lo nc.lo string.lo v1hpg.lo var.lo posixio.lo
libtool: link: ar cru .libs/libnetcdf.a attr.o ncx.o putget.o dim.o
error.o libvers.o nc.o string.o v1hpg.o var.o posixio.o
ar: 0707-126 attr.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 ncx.o is not valid with the current object file mode.
Going by the automake docs I tried the following in my configure.ac:
AC_SUBST(ARFLAGS, ["$ARFLAGS"])
and this in my Makefile.am:
libnetcdf_la_AR = $(ARFLAGS)
but still I cannot get ar to use my flags. It's odd, because looking
in the generated makefile I see:
ARFLAGS = -X64 cru
But anyway, it's not working. Anyone who can suggest what I am doing
wrong here would be very helpful...
Thanks!
Ed
--
Ed Hartnett -- [EMAIL PROTECTED]