[bind10-dev] unit tests and /usr/local

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Tue Mar 23 06:00:56 UTC 2010


At Mon, 22 Mar 2010 18:53:17 +0100,
Jelte Jansen <jelte at isc.org> wrote:

> Indeed. I think we should force static linking for the unit tests if
> possible (not sure on what to do if static linking is disabled and
> library parts aren't made into static libraries); LD_LIBRARY_PATH isn't
> always called that on all systems (iirc, on osx it's DYLD_LIBRARY_PATH,
> for instance).

Right, building "run_unittests"s statically is probably a better
approach to handle this issue.  From a quick experiment it's possible
within the framework of automake: you should simply specify "-static"
to program-specific LDFLAGS, e.g.
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS) -static
and just list libXXX.la's in the program's LDADD as before.

I'm not sure how portable the -static flag is, though.

---
JINMEI, Tatuya



More information about the bind10-dev mailing list