From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10095 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: make install permissions Date: Mon, 6 Jun 2016 18:27:36 -0400 Message-ID: <20160606222736.GT10893@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1465252076 25087 80.91.229.3 (6 Jun 2016 22:27:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2016 22:27:56 +0000 (UTC) Cc: musl@lists.openwall.com To: Philip Deegan Original-X-From: musl-return-10108-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 07 00:27:56 2016 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 1bA2zx-0002wH-42 for gllmg-musl@m.gmane.org; Tue, 07 Jun 2016 00:27:53 +0200 Original-Received: (qmail 26185 invoked by uid 550); 6 Jun 2016 22:27:50 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26165 invoked from network); 6 Jun 2016 22:27:50 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10095 Archived-At: On Mon, Jun 06, 2016 at 09:54:02PM +0100, Philip Deegan wrote: > Hi, > > I'm trying out musl and I noticed that even when "--prefix" is used for > "configure", "make install" still tries to put a symlink in "/lib". > > Is this intentional? Yes. --syslibdir is not affected by --prefix because it's part of the ABI. You can opt to override it at build time if you want to install on the host as non-root, but as a result your binaries linked against musl will contain a hard-coded path that's specific to your installation and won't be easily usable on systems other than your own. If you just want to stage an installation for a chroot or cross root, don't make the staging location part of the prefix but instead run "make install DESTIR=...". > I rather keep my system directories clean and isolate my dev stuff. > > Thanks > > PS. Is there a "musl-g++.specs" floating around anywhere? In principle the same recipe as musl-gcc works for g++, just replacing the name fo the command it invokes, but the c++ headers (or maybe the precompiled versions thereof?) from a glibc-based host gcc encode lots of glibc-specific assumptions, and badly break at compile time. Linking to the libstdc++.a that was originally built against glibc works okay though. If you can come up with a solution for the headers problem, we can add a g++ wrapper, but I don't have the time or interest to spend trying to figure that out myself. Rich