From: Earnie <ea...@us...> - 2011-11-07 17:30:09
|
Charles Wilson wrote: > On 11/7/2011 10:20 AM, Earnie wrote: >> I've been communicating with a project about MinGW and testing their SVN >> trunk. We've run into an issue where the "make check" used the DLL >> existing in mingw/bin rather than the src/.libs directory. I'm looking >> for methods currently in use that avoid this issue. I've not found >> anything with Google so if someone has pointers to examples it would be >> helpful both to me and the internet search engines. > > 1) link the executable using libtool. This will do two things: > a) place the "real" executable in <appsrc>/.libs/ > b) put a "wrapper executable" in <appsrc>. > So we have src/.libs where the DLL lives and we have tests/.libs where the test executables live. > 2) ensure that 'make check' is invoking the wrapper executable, and not > sneaking around in the .libs/ directory. > So what should be passed to libtool so that tests get ../src/.libs included in PATH at execution? Hmm... looking at the ltshwrapper in tests/.libs I see in func_exec_program() that it does set PATH to ../src/.libs. I'll check the Makefile again to see what's going on. Thanks, -- Earnie |