From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7767 Path: news.gmane.org!not-for-mail From: Shiz Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Tue, 26 May 2015 03:53:26 +0200 Message-ID: <2C35A69F-3A8A-4EDE-86CA-029A9B9BDD45@shiz.me> References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> <20150526013741.GY17573@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=_95F90C1B-04D3-4D1D-9288-05667D7150E1"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: ger.gmane.org 1432605235 17143 80.91.229.3 (26 May 2015 01:53:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 01:53:55 +0000 (UTC) Cc: Paulo Castro , simoes.lucas.silva@gmail.com To: musl@lists.openwall.com Original-X-From: musl-return-7779-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 03:53:54 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 1Yx442-0002wR-3s for gllmg-musl@m.gmane.org; Tue, 26 May 2015 03:53:54 +0200 Original-Received: (qmail 13435 invoked by uid 550); 26 May 2015 01:53:52 -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 13417 invoked from network); 26 May 2015 01:53:52 -0000 X-Virus-Scanned: amavisd-new at shiz.me X-Pgp-Agent: GPGMail 2.5b6 In-Reply-To: <20150526013741.GY17573@brightrain.aerifal.cx> X-Mailer: Apple Mail (2.2070.6) Xref: news.gmane.org gmane.linux.lib.musl.general:7767 Archived-At: --Apple-Mail=_95F90C1B-04D3-4D1D-9288-05667D7150E1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 26 May 2015, at 03:37, Rich Felker wrote: >=20 > The main reason we need a specfile for gcc rather than just -nostdinc > and -nostdlib is that the latter does not suppress search of the > default library paths, just the libraries, i.e. it removes the -l's > but not the -L's. If you can find a way to remove the default -L's for > clang then it should be easy. >=20 > Rich Sadly, after looking at the clang driver source[1], there seems to be no such option: it unconditionally adds the library paths. Unless there=E2=80= =99s some way to influence ToolChain.getFilePaths(), it doesn=E2=80=99t seem = like it can be done without modifying the clang source code. -S [1]: = https://github.com/llvm-mirror/clang/blob/9a5a6f0e149ba035168641ca6dc4e3b3= e5aa29b5/lib/Driver/Tools.cpp#L8009 --Apple-Mail=_95F90C1B-04D3-4D1D-9288-05667D7150E1 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----- iQIcBAEBCAAGBQJVY9IkAAoJEI8YjKeZk+kH2VQP/A9S3/klWdf7DieIqFnRiGCV zJCLlw8AY78jDaWq3UgllLIHvgKm3yyjsYDIT8aHeqk3xlmosWYXIduQw+3z9xSX TyzeuwNJrWN1EXN7vqVUpz+1HGFMmQc1HpYW2KcfhPRHTyId9AYhZsaz67rMQi+d AqBdFbsLPk/kDbuTa/rbqU5LyjeIOVFQUSKXe7m+m78lR5hw9Vs4F1qzVSYwiUUe CQ108dpdMDVPcqmksjZU1InG1T345JJh09ZDeK8EIyQQTysH/KputyR6Hc8fiKIL chh/3FxJO8AhIw68Yj2crKfL8DcFlj0+5Q/q2KO7xbLGwhzH9HDMA7RpgKk2Mh/Q 0CFlKGrD3C0O+GnLsnLqujQgRWAdvyamSWRybsFxs17aw1e7j3IjuQD0sRJ/wDkb JT9wjRaN9DAw2ZN5cvigu0u5tIML2q3vl7xe6zbOAU1uzZrp1TDre93xWbajZXAv FAzA9BPQZxOiPo2bUbY8l2ucZjm/ADdWE9YzKPqI3CYdzwmlYOaLZW7Zfd/7W2ZR TeG94KdOGhBLttiHqcO4rQlPjbIJCbm4NAaXnHCmxGPigtg6sBsgmsM0aAHmM+O1 M3pZiNoCESfp3VaSB5HKLESQD00P0rlmPijxWRtzc0w1uOYX00zo1k7/CUHqdBqK VvgA1pYU127elKo20WaN =dc/o -----END PGP SIGNATURE----- --Apple-Mail=_95F90C1B-04D3-4D1D-9288-05667D7150E1--