From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5790 Path: news.gmane.org!not-for-mail From: Tim Tassonis Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compiling latest busybox with latest musl Date: Fri, 08 Aug 2014 23:12:23 +0200 Message-ID: <53E53D37.3010401@decentral.ch> References: <53E53368.3070107@decentral.ch> <20140808205143.GR1674@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1407532361 15665 80.91.229.3 (8 Aug 2014 21:12:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 21:12:41 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5795-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 08 23:12:36 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XFrSm-0007Tk-1k for gllmg-musl@plane.gmane.org; Fri, 08 Aug 2014 23:12:36 +0200 Original-Received: (qmail 19564 invoked by uid 550); 8 Aug 2014 21:12:35 -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 19556 invoked from network); 8 Aug 2014 21:12:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=decentral.ch; s=rsa1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=khHlQ+dXlh4Oav2IlQfRP/50C+HKYcHD606p9jHbBd4=; b=PFHx3TzikkyEZzAMDknHpXiTciZYGA7RFveOv1YQ2ax3oR69dIi5WQeRm8kImMeJk4x+9Z24QTnAV3zDKchHAhcYoin4CpAT+ZJFH7oAsZXPfCd5z5++z8XWD2gWnoOC; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <20140808205143.GR1674@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5790 Archived-At: On 08/08/2014 10:51 PM, Rich Felker wrote: > On Fri, Aug 08, 2014 at 10:30:32PM +0200, Tim Tassonis wrote: >> Hi >> >> When I wanted to create s statically linked busybox (1.22.1), I looked >> in the wiki and found the page: >> >> http://wiki.musl-libc.org/wiki/Building_Busybox >> >> >> This put me off a bit, as I did not want to modify my kernel headers >> just to compile a static busybox. > > In order to compile Busybox (at least the applets that need kernel > headers), you have to have a copy of the kernel headers in your musl > include path anyway; if the host system is glibc-based, /usr/include > will not be used. So this isn't as big a burden as it sounds like. > You're not modifying "your kernel headers" but just the copy installed > with musl. This does not need root. The way I installed musl-1.1.14, there were no kernel headers installed. I just did the ./configurre --prefix=$MUSL_BASE make make install without any toolchain. So, the kernel headers were not found like this. Linking them into the include directory of musl seems to be the least expensive in this case. Kind regards Tim > > Rich > -- decentral.ch - IT Stuff Tim Tassonis Dennlerstasse 36 8047 Zürich stuff@decentral.ch +41 79 229 36 17