*.la or *.a - we cannot load these, so no error msg

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6691 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Hans Ulrich Niedermann
2003-08-31 18:56:21 +00:00
parent f0353782d0
commit 3bc856d28d

View File

@@ -287,9 +287,19 @@ gp_port_info_list_load (GPPortInfoList *list)
lh = GP_SYSTEM_DLOPEN (path);
if (!lh) {
gp_log (GP_LOG_DEBUG, "gphoto2-port-core",
"'%s' is not a library (%s)", path,
GP_SYSTEM_DLERROR ());
size_t len;
len = strlen(buf);
if ((len >= 3) &&
(buf[len-1] == 'a') &&
((buf[len-2] == '.') ||
((buf[len-2] == 'l') && (buf[len-3] == '.'))
)) {
/* *.la or *.a - we cannot load these, so no error msg */
} else {
gp_log (GP_LOG_DEBUG, "gphoto2-port-core",
"'%s' is not a library (%s)", path,
GP_SYSTEM_DLERROR ());
}
continue;
}