|
Message-ID: <20110808205520.GN132@brightrain.aerifal.cx> Date: Mon, 8 Aug 2011 16:55:20 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: Make On Mon, Aug 08, 2011 at 03:03:09PM +0200, nicolas@...lier-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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.