|
Message-ID: <20180904143025.GA1878@brightrain.aerifal.cx> Date: Tue, 4 Sep 2018 10:30:25 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: How to use MUSL without installing it? On Tue, Sep 04, 2018 at 03:39:10PM +0300, John Found wrote: > On Tue, 4 Sep 2018 08:27:20 -0400 > Rich Felker <dalias@...c.org> wrote: > > > This won't work -- a relative path is relative to the current working > > directory, not the location of the executable. If you want users to be > > able to invoke your program normally, you need to just provide a > > wrapper script that does something like > > > > exec $(basedir)/ld-musl-i386.so --library-path ... -- $(basedir)/your_program.bin "$@" > > > > I'm actually working on a design to allow direct invocation of > > dynamic-linked programs without absolute dynamic linker paths, but it > > will be a while before it's done and included in musl. > > It works like a charm. :) It is a back-end web application and it always > is started in it's own directory, as a service or from the web server. > > I use this way, because when installing web applications on shared hosting, > the user can't install libraries to the system directories of the server. > He is limited only to the his document root. OK, it works for your usage case but not in general. :) Rich
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.