bug-libtool
[Top][All Lists]
Advanced

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

Re: Feature request: setting env vars for binary wrappers


From: Bob Friesenhahn
Subject: Re: Feature request: setting env vars for binary wrappers
Date: Thu, 17 Apr 2008 16:40:47 -0500 (CDT)

On Thu, 17 Apr 2008, Behdad Esfahbod wrote:

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

I feel your pain. As a workaround, for my own software I add a small script which exports environment variables prior to running each test. This is an extra shim layer that should not have to exist. The script (attached) has substitutions applied to it prior to use. In the future, I might include similar replicated code in each test script so that the tests are completely stand-alone and run a bit faster.

An unfortunate thing is that not all software is configured the same. For example, my own software supports independent configuration for the location of different types of files. A single top "prefix" environment variable would not directly work with my application while it might work for others. A single top prefix would require that the application know the structure of the build tree, which is likely a bad thing since it may not match the install tree.

It seems to me that the proper place to fix this is at the Automake level since Automake's weak support for tests is the true cause of the problem.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

Attachment: rungm.sh.in
Description: Text document


reply via email to

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