From 64c57957264dc096d0e1f6f6219ba93ea4cd2a0e Mon Sep 17 00:00:00 2001 From: Katsuhiko Nishimra Date: Sat, 27 Oct 2012 03:22:25 +0900 Subject: Read output file extension from RbConfig::CONFIG["DLEXT"] --- ext/openbabel/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3