[PATCH] GNU_AR_DETERMINISTIC env var, --enable-deterministic-archives

Roland McGrath mcgrathr@google.com
Tue Dec 13 17:32:00 GMT 2011


On Tue, Dec 13, 2011 at 6:51 AM, Ian Lance Taylor <iant@google.com> wrote:
> What about putting a shell script version of ar first on PATH?  Are
> there many programs that pull ar out of some magic location rather than
> simply using PATH?

There are many that use AC_CHECK_TOOL and the like, so you'd need to make
it a ${target_alias}-ar script (and likewise for ranlib).  Then there is
the GCC build, which might do that or might do something far more difficult
to figure out.  This is probably doable--more doable than getting a setting
of AR, or harder yet, of the flags passed to AR through configure/make for
the GCC build.  But it's a hell of a lot less friendly and replicable than
just setting an environment variable or configuring the target binutils
with --enable-deterministic-archives.


Thanks,
Roland



More information about the Binutils mailing list