This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]