Skip to content

Commit

Permalink
Merge pull request jruby#7969 from ahorek/soext
Browse files Browse the repository at this point in the history
add RbConfig::CONFIG["SOEXT"]
  • Loading branch information
enebo authored Oct 18, 2023
2 parents 7bd51e5 + 7aa17b9 commit 61bbe4f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,13 @@ public void load(Ruby runtime, boolean wrap) {

if (Platform.IS_WINDOWS) {
setConfig(context, CONFIG, "EXEEXT", ".exe");
setConfig(context, CONFIG, "SOEXT", "dll");
} else if (Platform.IS_MAC) {
setConfig(context, CONFIG, "EXEEXT", "");
setConfig(context, CONFIG, "SOEXT", "dylib");
} else {
setConfig(context, CONFIG, "EXEEXT", "");
setConfig(context, CONFIG, "SOEXT", "so");
}

setConfig(context, CONFIG, "ridir", newFile(shareDir, "ri").getPath());
Expand Down

0 comments on commit 61bbe4f

Please sign in to comment.