This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: ARFLAGS added
- From: Tom Tromey <tromey at redhat dot com>
- To: erik at ehofman dot com
- Cc: automake at gnu dot org
- Date: 08 Sep 2002 22:59:55 -0600
- Subject: Re: ARFLAGS added
- References: <3D77236B.6020603@ehofman.com>
- Reply-to: tromey at redhat dot com
>>>>> "Erik" == Erik Hofman <erik@ehofman.com> writes:
Erik> Therefore I've added an ARFLAGS definition to automake.in (see the
Erik> patch) because at this time when setting program_AR = $(CXX) -ar -o
Erik> the resulting link line will be:
What version of automake are you using?
Erik> program_AR = $(CXX) -ar
I think this ought to override the default setting (which includes
"cru"). So this should work already.
Erik> - &define_variable ($xlib . '_AR', '$(AR) cru');
Erik> + &define_variable ($xlib . '_AR', '$(AR) $(ARFLAGS)');
This change supports my theory. If you redefine the per-library _AR
setting, the "cru" won't be included -- this code is only run if the
per-library AR setting is not defined.
If it still fails for you, could you write a test case in the style of
the test suite that shows the problem? Thanks.
Tom