If I understand the libtool concept
correctly, libtool passes -rpath to the linker when building an executable
which depends on a not yet installed library.
For instance, when building glib, glib-2.0.0.dll
is built at first. When building glib-genmarshal, libtool passes -Wl,--rpath,/path_to_not_yet_installed_glib-2.0.0
Unfortunately, PE DLLs don't support
this --rpath option. Is there any way to tell libtool to use something
different for this?
Probably using LD_LIBRARY_PATH. Though
I think that this will not really work, because whenever you execute glib-genmarshal
one would have to set this path. (Inside the make process this may not
be really a problem, but when executing directly from the shell no one
has set this path yet).
How does cygwin deal with this? Does
this even work on cygwin?