Skip to content

Commit

Permalink
workaround function interposition
Browse files Browse the repository at this point in the history
  • Loading branch information
llaurent committed Oct 7, 2016
1 parent d3a1a3d commit 2e5f792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/oci8/oci8lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ void *oci8_find_symbol(const char *symbol_name)
#ifdef _AIX
#define DLOPEN_FLAG (RTLD_LAZY|RTLD_GLOBAL|RTLD_MEMBER)
#else
#define DLOPEN_FLAG (RTLD_LAZY|RTLD_GLOBAL)
//#define DLOPEN_FLAG (RTLD_LAZY|RTLD_GLOBAL)
// https://github.com/kubo/ruby-oci8/issues/32
#define DLOPEN_FLAG (RTLD_NOW|RTLD_LOCAL)
#endif
for (idx = 0; idx < NUM_SONAMES; idx++) {
handle = dlopen(sonames[idx], DLOPEN_FLAG);
Expand Down

0 comments on commit 2e5f792

Please sign in to comment.