unixODBC/nortldglobal.patch
2005-09-29 22:41:56 +00:00

23 lines
779 B
Diff

Although we want to use the latest libltdl, there is one patch that must
be made to avoid problems in Perl::ODBC: don't use RTLD_GLOBAL in the
call to dlopen().
diff -Naur unixODBC-2.2.11.save/libltdl/ltdl.c unixODBC-2.2.11/libltdl/ltdl.c
--- unixODBC-2.2.11.save/libltdl/ltdl.c 2005-09-29 16:18:17.000000000 -0400
+++ unixODBC-2.2.11/libltdl/ltdl.c 2005-09-29 16:45:11.000000000 -0400
@@ -1107,7 +1107,12 @@
lt_user_data loader_data;
const char *filename;
{
- lt_module module = dlopen (filename, LT_GLOBAL | LT_LAZY_OR_NOW);
+/*
+ * this need takeing out, otherwise things like perl break
+ * lt_module module = dlopen (filename, LT_GLOBAL | LT_LAZY_OR_NOW);
+ */
+
+ lt_module module = dlopen (filename, LT_LAZY_OR_NOW );
if (!module)
{