help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird behavior in case of using archive rules for archives other tha


From: Paul Smith
Subject: Re: Weird behavior in case of using archive rules for archives other than ar/.a, i.e. jar/.jar
Date: Tue, 10 Mar 2015 09:18:15 -0400

On Tue, 2015-03-10 at 18:24 +0530, Christian Hujer wrote:
> trying to use archive rules for jar (placeholder for any kind of
> archive other than ar archive/ranlib static link library).

You can't do that.  Archive rules work ONLY with real archives (libX.a
files), created with the UNIX ar(1) utility.

GNU make has C code that knows how to parse an ar archive file and
examine its contents: this is the only way make's archive capability can
work (it must be able to obtain a table of contents that includes
timestamps).  That code can't parse any kind of file, just ar files.  In
particular jar files are ZIP files, which are totally different.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]