This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with PATH set by libtool for uninstalled pixman library

On 29/07/2010 09:20, Charles Wilson wrote:
On 7/28/2010 2:24 PM, Jon TURNEY wrote:

I have a tinderbox which does daily builds of the X.Org stack for cygwin, and I've come across a something I don't understand with the way libtool is working when building the pixman library, and I hope someone can shed a bit of light.

(lt_update_lib_path) modifying 'PATH' by prepending
(lt_setenv) setting 'PATH' to

(lt_update_exe_path) modifying 'PATH' by prepending

(lt_setenv) setting 'PATH' to

This is because the wrapper prepends the rpath onto $$LIB_PATH_VARNAME, and prepends the dllsearchpath onto $$EXE_PATH_VARNAME.

But, since LIB_PATH_VARNAME==EXE_PATH_VARNAME on cygwin (both are
"PATH") that's basically saying:


I think it was a deliberate choice (e.g. on linux) for the wrapper to
add the $rpath to $LD_RUN_PATH,'s not such a great idea for win32.

This is a case where the wrapper exe was trying to do exactly what the
wrapper script used to do -- without considering whether the wrapper
script was doing the right thing, for this platform.

I think a patch to simply swap the order of these two assignments would
be fine (e.g. do $dllsearchpath first, then make sure it gets pre-empted
by $rpath). On *nix it wouldn't matter, since the two variables are

Okay, thanks very much for the explanation. This clarifies for me that this is a bug or platform quirk with libtool, and not something that pixman is doing wrong, so I can stick with the workaround I have for the moment.

I don't think I'm feeling brave enough at the moment to look at the libtool source:-)

As you can see, the install path appears before .libs in the PATH the
libtool wrapper constructs, so the installed version from a previous
build is used, rather than the uninstalled version we want to test.

I'm not quite clear why the install path is being added at all, I don't
think libpixman has any dependencies which it needs to find there (at
least in the cygwin build)

But libtool doesn't know that, at that particular point in the code.

-- Problem reports: FAQ: Documentation: Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]