vbox: Don't warn when the linker search path doesn't contain VBoxXPCOMC.so

This is actually a workaround, to unbreak make check on systems
without VirtualBox.
This commit is contained in:
Matthias Bolte 2010-10-29 16:31:29 +02:00
parent f4a8542dd5
commit 2eb99c4a6c

View File

@ -124,7 +124,14 @@ static int tryLoadOne(const char *dir, bool setAppHome, bool ignoreMissing)
g_hVBoxXPCOMC = dlopen(name, RTLD_NOW | RTLD_LOCAL);
if (g_hVBoxXPCOMC == NULL) {
VIR_WARN("Could not dlopen '%s': %s", name, dlerror());
/*
* FIXME: Don't warn in this case as it currently breaks make check
* on systems without VirtualBox.
*/
if (dir != NULL) {
VIR_WARN("Could not dlopen '%s': %s", name, dlerror());
}
goto cleanup;
}