 |
Forums |
Admin Start New Thread
| Message: 96844 |
 |
BY: d c (mutex) DATE: 2011-08-05 08:48 SUBJECT: use -rpath when building with instantclient Hi,
I notice in ext/oci8/oraconf.rb that ruby-oci8 will only use -rpath to hardcode the library runtime path to the oracle client libraries if oraconf detects that a full client is being used.
I am submitting a small patch to use -rpath in linux when building ruby-oci8 against oracle instant client. Can you please include this in future builds of ruby-oci8?
Thanks.
--- ext/oci8/oraconf.rb.orig 2011-08-05 18:36:30.000000000 +1000
+++ ext/oci8/oraconf.rb 2011-08-05 18:37:04.000000000 +1000
@@ -1116,8 +1116,13 @@
end
raise 'failed'
end
+ case RUBY_PLATFORM
+ when /linux/
+ @libs = " -L#{lib_dir} -Wl,-rpath,#{lib_dir} -lclntsh"
+ else
+ @libs = " -L#{lib_dir} -lclntsh "
+ end
end
- @libs = " -L#{lib_dir} -lclntsh "
unless File.exist?("#{inc_dir}/oci.h")
raise <<EOS
'#{inc_dir}/oci.h' does not exist.
| |
Thread View
| Thread |
Author |
Date |
 |
use -rpath when building with instantclient | d c | 2011-08-05 08:48 | |
Post a followup to this message
|
 |