mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: ldconfig? /usr/lib64 LD_LIBRARY_PATH
Date: Wed, 22 Apr 2015 14:37:02 -0400	[thread overview]
Message-ID: <20150422183702.GE6817@brightrain.aerifal.cx> (raw)
In-Reply-To: <5537E54D.9090500@safe.ca>

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


  reply	other threads:[~2015-04-22 18:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-22 18:15 Jean-Marc Pigeon
2015-04-22 18:37 ` Rich Felker [this message]
2015-04-22 19:08   ` Jean-Marc Pigeon
2015-04-22 19:11     ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150422183702.GE6817@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).