From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/362 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Make Date: Mon, 8 Aug 2011 16:55:20 -0400 Message-ID: <20110808205520.GN132@brightrain.aerifal.cx> References: <6b8e6a08f65ec476283a3699a41451d7@smtp1.ispfr.net> <20110807193658.GA29562@port70.net> <20110807193431.GI132@brightrain.aerifal.cx> <20110807195006.GJ132@brightrain.aerifal.cx> <20110807220940.GC29562@port70.net> <20110807220025.GL132@brightrain.aerifal.cx> <84fdaa74ee78c44b1cbc804bfc2b8635@smtp1.ispfr.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1312837691 24437 80.91.229.12 (8 Aug 2011 21:08:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 21:08:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-363-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 08 23:08:05 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QqX3M-00013o-Da for gllmg-musl@lo.gmane.org; Mon, 08 Aug 2011 23:08:04 +0200 Original-Received: (qmail 11671 invoked by uid 550); 8 Aug 2011 21:08:04 -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 11663 invoked from network); 8 Aug 2011 21:08:03 -0000 Content-Disposition: inline In-Reply-To: <84fdaa74ee78c44b1cbc804bfc2b8635@smtp1.ispfr.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:362 Archived-At: On Mon, Aug 08, 2011 at 03:03:09PM +0200, nicolas@atelier-web.com wrote: > Yop ! > > Now, i'm able to compile and to run musl as the only system of the system > (chroot) but there 2 things that i don't understand. > > 1) There is no /lib/ld-linux.so.2 ? /lib/ld-musl-i386.so.1 If you're building a native compiler rather than using the wrapper you should edit the specs to point the linker here (-dynamic-linker option). > 2) How can i link programs with musl if i don't use gcc ? > > For example, i managed to compile Make 3.82 with pcc : > CC=pcc ./configure --prefix=/usr \ > --build=i586-pc-linux-gnu --host=i586-pc-linux-gnu > CC=pcc make > CC=pcc make install You should not need --build or --host unless you're doing weird cross-compiling stuff. In a native environment (which you have) just CC=pcc ./configure --prefix=/usr && make should be all you need. > But make depends on ld-linux.so.2 ans on librt.so.1 which are not provided musl provides an empty librt.a which should satisfy anything using -lrt. All standard library functions are in the main library; it's not broken down into parts because that just makes the system slow, bloated, and harder to maintain. Rich