From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7828 Path: news.gmane.org!not-for-mail From: Shiz Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 1/2] add musl-clang, a wrapper for system clang installs Date: Fri, 29 May 2015 19:35:18 +0200 Message-ID: <0453E380-A35F-4B0E-9D9B-AC03BEDEDB55@shiz.me> References: <1432918126-27741-1-git-send-email-hi@shiz.me> <20150529170349.GK17573@brightrain.aerifal.cx> <20150529171335.GL17573@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2A556599-00C9-4864-929A-69064462D056"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: ger.gmane.org 1432920950 8553 80.91.229.3 (29 May 2015 17:35:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2015 17:35:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7840-gllmg-musl=m.gmane.org@lists.openwall.com Fri May 29 19:35:50 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YyOC8-00066T-8i for gllmg-musl@m.gmane.org; Fri, 29 May 2015 19:35:44 +0200 Original-Received: (qmail 19489 invoked by uid 550); 29 May 2015 17:35:42 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19465 invoked from network); 29 May 2015 17:35:42 -0000 X-Virus-Scanned: amavisd-new at shiz.me X-Pgp-Agent: GPGMail 2.5b6 In-Reply-To: <20150529171335.GL17573@brightrain.aerifal.cx> X-Mailer: Apple Mail (2.2070.6) Xref: news.gmane.org gmane.linux.lib.musl.general:7828 Archived-At: --Apple-Mail=_2A556599-00C9-4864-929A-69064462D056 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 29 May 2015, at 19:13, Rich Felker wrote: >=20 > On Fri, May 29, 2015 at 07:11:18PM +0200, Shiz wrote: >=20 > What if you add a bogus prefix to all -l and -L options provided by > the user? Then the wrapper can remove any -l or -L options without the > prefix, then remove the prefix from the ones that remain. >=20 > Rich This isn=E2=80=99t a bad idea, but it modifies the behaviour in the same = way musl-clang does, except the other way around: it will not have clang invoke ld if only -l is supplied by the user and no object paths are, which is what normally should happen. I=E2=80=99m pretty sure I=E2=80=99ve devised a fix that doesn=E2=80=99t = modify behaviour and makes ld.musl-clang a bit cleaner as a side-effect - I=E2=80=99ll post = an updated patch after a bit of testing. -S --Apple-Mail=_2A556599-00C9-4864-929A-69064462D056 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJVaKNhAAoJEI8YjKeZk+kH1kYQAKSX403NFkaKsSsptdncSbiM uYoTs1N/tCPTGzFJFuH5P77oALmt/+U20XAYg23kk5G2dsL/QQIh1YLI8TgDWXk6 0tvpuJ+P/YmXKHDKZuWnljqBWecruAl+a/dZ8U2B+haWb19puk9BW4BBq5UlAPsn IXh5fZtyFxBJ9k98b8UUzTeetHvK3f2sUduD7XBoCbHWTDTI1PSLt9VUFfQTUmMW HotjXkzD3Q3zCDC48sPaZ7av9TJZLpDxTJuVQLD5HMPYWsRdRGJtKzbNd6tN7KCG 2P9Wro41pvmL4TBu8UBhQqgM+xYU3bPnW4tGFFZYhudNWRuAD/OMfKJgnaZfr5fh ETputtmSTMNgL+SPF5x3FTmetabvZ/49ZbNk7kJY0kqUPj/EhEN7WDujI9LNVnJI o2LXwCpK5p16qmhiBA1w/3d7d1O8nfmajzNDkkDw3OgEw7PtulI5GdUtkrBwOvb+ shoWMTzpnfKrTQjxGlWkJZoCZmjbIsbXsg6HmYo3vunhIjkepKolg1HMFsxLVNct JegtVxFJHljSOrzkMIE952s2iUHQrRvlg+n3PFWf8dnf1pS+k5YlANpz2tIyQzU2 sbtGb9OKh7Impi2aMnN21wVOZCkd0Y+XaIk7dc1VxLRBl/nEyVM0ZOKGXLbN3EAN kOUsIZNUsIIn82fodaMZ =F6od -----END PGP SIGNATURE----- --Apple-Mail=_2A556599-00C9-4864-929A-69064462D056--