From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7766 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using Musl with LLVM/Clang Date: Mon, 25 May 2015 21:37:41 -0400 Message-ID: <20150526013741.GY17573@brightrain.aerifal.cx> References: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1432604288 1527 80.91.229.3 (26 May 2015 01:38:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 01:38:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7778-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 03:38:02 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 1Yx3oZ-0005Q4-NV for gllmg-musl@m.gmane.org; Tue, 26 May 2015 03:37:55 +0200 Original-Received: (qmail 26244 invoked by uid 550); 26 May 2015 01:37:54 -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 26223 invoked from network); 26 May 2015 01:37:53 -0000 Content-Disposition: inline In-Reply-To: <12AE8608-7269-4325-9566-9897073E61A3@shiz.me> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7766 Archived-At: On Tue, May 26, 2015 at 03:33:19AM +0200, Shiz wrote: > There’s sadly no trivial clang wrapper script as of yet, but you can look at the ELLCC project[1], > which distributes prebuilt musl-powered LLVM toolchains. Wrapping clang with a musl-gcc like script > would be absolutely desirable, but I’m unsure how possible that is given clang’s apparent lack of specs files[2]. 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. Rich