From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7467 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: ldconfig? /usr/lib64 LD_LIBRARY_PATH Date: Wed, 22 Apr 2015 14:37:02 -0400 Message-ID: <20150422183702.GE6817@brightrain.aerifal.cx> References: <5537E54D.9090500@safe.ca> 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 1429727839 15801 80.91.229.3 (22 Apr 2015 18:37:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Apr 2015 18:37:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7480-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 22 20:37:19 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 1YkzWQ-0004j5-Lx for gllmg-musl@m.gmane.org; Wed, 22 Apr 2015 20:37:18 +0200 Original-Received: (qmail 25671 invoked by uid 550); 22 Apr 2015 18:37:17 -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 25653 invoked from network); 22 Apr 2015 18:37:16 -0000 Content-Disposition: inline In-Reply-To: <5537E54D.9090500@safe.ca> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7467 Archived-At: On Wed, Apr 22, 2015 at 02:15:41PM -0400, Jean-Marc Pigeon wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I now have a set of packages (76,... gcc, make, git, etc.) > which are compiled with musl, all the way up to the > linux kernel. > With those packages I have reached my immediate goal of > having a self-sufficient distribution (the generated distribution can > recreate itself, see www.osukiss.org if you want > to know more). > > I started from a simple glibc set of packages > and I converted them to musl while trying to have the > "minimal delta", keeping some package (ex: gettext, > ncurses?, ...) will be decided later on. > In the end I want a "clean, lean, strictly within > standards" set of packages, musl being a good example. > > For now I have a problem with libraries, and I would > like to have a better understanding about what is suggested > about library PATH. > > All packages 'configure' set their library to be in /usr/lib64, > many libraries (acl,...) without RPATH wants/needs them > within /lib. I bypassed the problem by sym-linking > needed libraries between /lib and /usr/lib64. > > I rather prefer to have libraries only within /usr/lib64 > (or /usr/lib for i686), sure enough I can hardcode > LD_LIBRARY_PATH within profile but I do not like this > solution. > > ldconfig seems not available with musl. > > Is there a easy/standard way in musl to set > the libraries in designated area? Just place the paths you want searched in a file named /etc/ld-musl-x86_64.path (or replace x86_64 with your arch, the same as the name in /lib/ld-musl-*.so.1), separated by newlines or colons. If this file exists it will replace (not add to) the default search path, so you need to include all dirs you want searched. Note that ld-musl-*.so.1 itself needs to be in /lib. Rich