[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request: setting env vars for binary wrappers

From: Behdad Esfahbod
Subject: Re: Feature request: setting env vars for binary wrappers
Date: Thu, 17 Apr 2008 17:01:26 -0400

On Thu, 2008-04-17 at 23:38 +0300, Roumen Petrov wrote:
> I think that all above is out of libtool scope.
> It's is exceptional project specific (lets skip cross-compilation 
> environment) and is subject of project regression test suite.
> The project is responsible to set appropriate test environment before
> to run regression test.
> Please let me know when I don't understand request properly.

It's not about regression testing at all.  It's about making binaries in
uninstalled builds work.  For example, many GNOME applications need to
load their UI from XML files.  If you build and not install them and try
to run from the build dir, not surprisingly, the XML file is not found
at destination, and the program will fail to start.  With my proposed
additions, programs can for example check for an env var for an
alternative prefix, and the Makefile.am can pass that information to
libtool to put into the wrapper.  Then running from uninstalled build
will work.

If running uninstalled build is not a goal, why bother about
LD_LIBRARY_PATH'ing the uninstalled library path at all?

> Roumen


"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

reply via email to

[Prev in Thread] Current Thread [Next in Thread]