But this answer belongs in the other thread since it is not related to
the question in this thread (which was how to set some arbitrary
environment variable automatically in the libtool wrapper script).
There isn't such a thing. If you fully link, then you don't need
the "LD_LIBRARY_PATH" hack. By the way, I tried that, too. That
wound up having other breakage because various tools simply know that
users are not supposed to mess with it. Linking with -static is
the path of least resistance. Good luck. Regards, Bruce