Subject: Re: pkg/37228: pkgsrc reorders -l relative to -Wl,-Bstatic /
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Havard Eidnes <he@NetBSD.org>
List: pkgsrc-bugs
Date: 11/08/2007 13:55:04
The following reply was made to PR pkg/37228; it has been noted by GNATS.

From: Havard Eidnes <he@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/37228: pkgsrc reorders -l<lib> relative to -Wl,-Bstatic /
 -Wl,-Bdynamic
Date: Thu, 08 Nov 2007 14:54:50 +0100 (CET)

 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