diff options
author | Katsuhiko Nishimra <ktns.87@gmail.com> | 2012-10-27 03:22:25 +0900 |
---|---|---|
committer | Katsuhiko Nishimra <ktns.87@gmail.com> | 2012-10-27 03:24:29 +0900 |
commit | 64c57957264dc096d0e1f6f6219ba93ea4cd2a0e (patch) | |
tree | e657884542356797a256f6599be1da6013557e7d | |
parent | 557db70f2a83519101276d9f2025563e001ff4a7 (diff) |
Read output file extension from RbConfig::CONFIG["DLEXT"]
-rw-r--r-- | ext/openbabel/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openbabel/extconf.rb b/ext/openbabel/extconf.rb index fc7de95..d6db793 100644 --- a/ext/openbabel/extconf.rb +++ b/ext/openbabel/extconf.rb @@ -37,7 +37,7 @@ begin `sed -i -e 's/-flat_namespace//' Makefile` puts `make` end - FileUtils.cp(ob_bindings_dir+"/openbabel.so", "./") + FileUtils.cp(ob_bindings_dir+"/openbabel.#{RbConfig::CONFIG["DLEXT"]}", "./") ensure FileUtils.remove_entry_secure main_dir end |