[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ARFLAGS when only EXTRA_LIBRARIES
From: |
Kevin Ryde |
Subject: |
ARFLAGS when only EXTRA_LIBRARIES |
Date: |
Fri, 14 May 2004 07:29:39 +1000 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |
When the only ar style library is in an EXTRA_LIBRARIES, I believe
there are no default settings for AR and ARFLAGS put into Makefile.in.
The configure.in and Makefile.am below together with an empty foo.c
show the problem, with autoconf 2.59 and automake 1.8.4,
aclocal
autoconf
automake
and for instance on a hppa1.1-hp-hpux9.05 system,
./configure
make libfoo.a
gives
...
rm -f libfoo.a
libfoo.a foo.o
Make: Cannot load libfoo.a. Stop.
Some make's seem to have builtin defaults for AR and ARFLAGS, gnu and
freebsd for instance. But I take it automake is not meant to depend
on that, since I see for instance automake puts AR=ar and ARFLAGS=cru
into Makefile.in when one uses lib_LIBRARIES or noinst_LIBRARIES
instead of EXTRA_LIBRARIES.
For what it's worth, this arose in GMP, where a little demo library is
the only plain ar library in the package (the rest is libtool). I
made this an EXTRA_LIBRARIES so there'd be rules for a user to make it
if they wanted, but nothing is done in a normal build.
configure.in
Description: Text document
Makefile.am
Description: Text document
- ARFLAGS when only EXTRA_LIBRARIES,
Kevin Ryde <=