Skip to content

Commit

Permalink
Showing 5 changed files with 16 additions and 7 deletions.
3 changes: 1 addition & 2 deletions lib/ruby/truffle/openssl/openssl.rb
Original file line number Diff line number Diff line change
@@ -10,8 +10,7 @@
(See the file 'LICENCE'.)
=end

#require 'openssl.so'
require 'openssl/openssl'
require 'openssl.so'

require 'openssl/bn'
require 'openssl/pkey'
1 change: 0 additions & 1 deletion lib/ruby/truffle/truffle/openssl.rb

This file was deleted.

2 changes: 1 addition & 1 deletion truffle/src/main/c/openssl/.jruby-cext-build.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
src: ./*.c
out: ../../../../../lib/ruby/truffle/openssl/openssl/openssl.su
out: ../../../../../lib/ruby/truffle/openssl/openssl.su
Original file line number Diff line number Diff line change
@@ -70,10 +70,20 @@ public String findFeature(String feature) {
}

private String findFeatureWithAndWithoutExtension(String path) {
final String asCExt = findFeatureWithExactPath(path + RubyLanguage.CEXT_EXTENSION);
if (path.endsWith(".so")) {
final String base = path.substring(0, path.length() - 3);

if (asCExt != null) {
return asCExt;
final String asSO = findFeatureWithExactPath(base + RubyLanguage.CEXT_EXTENSION);

if (asSO != null) {
return asSO;
}
}

final String asSU = findFeatureWithExactPath(path + RubyLanguage.CEXT_EXTENSION);

if (asSU != null) {
return asSU;
}

final String withExtension = findFeatureWithExactPath(path + RubyLanguage.EXTENSION);
1 change: 1 addition & 0 deletions truffle/src/main/ruby/core/post.rb
Original file line number Diff line number Diff line change
@@ -63,6 +63,7 @@ def self.const_exists?(mod, name, inherit = true)
$LOAD_PATH.push home + '/lib/ruby/truffle/rubysl/rubysl-webrick/lib'
$LOAD_PATH.push home + '/lib/ruby/truffle/shims'
$LOAD_PATH.push home + '/lib/ruby/truffle/truffle'
#$LOAD_PATH.push home + '/lib/ruby/truffle/openssl'

# We defined Psych at the top level because several things depend on its name.
# Here we fix that up and put it back into Truffle.

0 comments on commit 8d10af1

Please sign in to comment.