Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 22 Apr 2015 14:37:02 -0400
From: Rich Felker <>
Subject: Re: ldconfig? /usr/lib64 LD_LIBRARY_PATH

On Wed, Apr 22, 2015 at 02:15:41PM -0400, Jean-Marc Pigeon wrote:
> 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 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.


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.