Subject: Re: pkg/37228: pkgsrc reorders -l relative to -Wl,-Bstatic /
To: None <gnats-bugs@NetBSD.org>
From: Havard Eidnes <he@NetBSD.org>
List: pkgsrc-bugs
Date: 11/08/2007 14:54:50
Hi,

some further context information on this case:

The mk/wrapper/wrapper.sh script contains

reorder=3D${WRAPPER_REORDER-no}

which appears to imply that reordering of the command arguments
is by default disabled ("set to no"), and I've verified that
WRAPPER_REORDER is indeed unset in my case, so we end up with
"reorder=3Dno".

However, the mk/wrapper/buildcmd script will still reorders many
of the arguments, among them putting all the libraries at the end
of the command line, and thus exposing the problem documented in
this PR, irrespective of the value of "reorder" at the point
where it's used.

It is not evident what the intention is here, i.e. whether the
arguments should not have been reordered if "reorder=3Dno", but the
current behaviour appears to be somewhat internally inconsistent.

Regards,

- H=E5vard