Blame SOURCES/opendnssec-2.1.6-sqlite.patch
|
|
d76c96 |
diff --git a/enforcer/src/ods-migrate.c b/enforcer/src/ods-migrate.c
|
|
|
d76c96 |
index aece5058a..c440a36af 100644
|
|
|
d76c96 |
--- a/enforcer/src/ods-migrate.c
|
|
|
d76c96 |
+++ b/enforcer/src/ods-migrate.c
|
|
|
d76c96 |
@@ -97,10 +97,13 @@ dblayer_sqlite3_initialize(void)
|
|
|
d76c96 |
char const *error;
|
|
|
d76c96 |
|
|
|
d76c96 |
dlerror();
|
|
|
d76c96 |
- handle = dlopen("libsqlite3.so", RTLD_NOW);
|
|
|
d76c96 |
+ handle = dlopen("libsqlite3.so.0", RTLD_NOW);
|
|
|
d76c96 |
if ((error = dlerror()) != NULL) {
|
|
|
d76c96 |
- printf("Failed to load sqlite3 library. dlerror(): %s\n", error);
|
|
|
d76c96 |
- exit(1);
|
|
|
d76c96 |
+ handle = dlopen("libsqlite3.so", RTLD_NOW); /* unversioned is a -devel package file on some distros */
|
|
|
d76c96 |
+ if ((error = dlerror()) != NULL) {
|
|
|
d76c96 |
+ printf("Failed to load sqlite3 library. dlerror(): %s\n", error);
|
|
|
d76c96 |
+ exit(1);
|
|
|
d76c96 |
+ }
|
|
|
d76c96 |
}
|
|
|
d76c96 |
|
|
|
d76c96 |
dblayer_sqlite3.sqlite3_prepare_v2 = (int(*)(sqlite3*, const char*, int, sqlite3_stmt**, const char **))functioncast(dlsym(handle, "sqlite3_prepare_v2"));
|