From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4729 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: be able to break inheritance of LD_LIBRARY_PATH Date: Fri, 28 Mar 2014 16:25:39 +0100 Message-ID: <20140328152538.GI27448@port70.net> References: <20140328104208.GZ8221@example.net> <20140328131718.GH27448@port70.net> <20140328140036.GC8221@example.net> 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 1396020346 25491 80.91.229.3 (28 Mar 2014 15:25:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 15:25:46 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4733-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 28 16:25:57 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WTYfH-0004Sv-N0 for gllmg-musl@plane.gmane.org; Fri, 28 Mar 2014 16:25:51 +0100 Original-Received: (qmail 1892 invoked by uid 550); 28 Mar 2014 15:25:50 -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 1884 invoked from network); 28 Mar 2014 15:25:50 -0000 Content-Disposition: inline In-Reply-To: <20140328140036.GC8221@example.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4729 Archived-At: * u-igbb@aetey.se [2014-03-28 14:00:36 +0000]: > On Fri, Mar 28, 2014 at 02:17:19PM +0100, Szabolcs Nagy wrote: > > why do you use LD_LIBRARY_PATH then? > > I "do not". I am using the --library-path argument to the dynamic loader. > (Unless LD_LIBRARY_PATH is forced upon myself by someone else; > then I need protection from its potentially detrimental side effects) [..] > > if you mean you can run '/lib/ld-linux.so.2 binary' then musl can do the same > > Thanks for pointing me in the right direction. > > I was thinking of a "cheap and dirty workaround" while the most > appropriate is of course to add the missing argument parsing. > i still don't get what you are trying to achieve what is the difference between /lib/ld-linux.so.2 --library-path libpath binary and LD_LIBRARY_PATH=libpath /lib/ld-linux.so.2 binary ?