From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/74 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Dynamic linker committed! Date: Sat, 25 Jun 2011 02:02:39 -0400 Message-ID: <20110625060239.GW12592@brightrain.aerifal.cx> References: <20110619124959.GR12592@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1308982177 28323 80.91.229.12 (25 Jun 2011 06:09:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2011 06:09:37 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-158-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 25 08:09:34 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QaM3h-000180-Sa for gllmg-musl@lo.gmane.org; Sat, 25 Jun 2011 08:09:34 +0200 Original-Received: (qmail 3241 invoked by uid 550); 25 Jun 2011 06:09:33 -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 3231 invoked from network); 25 Jun 2011 06:09:33 -0000 Content-Disposition: inline In-Reply-To: <20110619124959.GR12592@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:74 Archived-At: On Sun, Jun 19, 2011 at 08:49:59AM -0400, Rich Felker wrote: > At present, the library search path is hard coded as > /lib:/usr/local/lib:/usr/lib. Obviously this only works if you have a > musl-based system rather than having glibc stuff in those paths, so > until I add configurability, you might want to edit the path in > src/ldso/dynamic.c manually when building. Search path support has been added. LD_LIBRARY_PATH is used (except for suid/sgid) and after that, the contents of /etc/ld-musl-$ARCH.path are read and used as a (colon-separated) path string. If that file cannot be read, a default path is used instead. I have also made various changes to the build system for installing/deploying shared libraries. Please test and let me know if there are problems! I hope to make an official release soon. Rich