summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatsuhiko Nishimra <ktns.87@gmail.com>2013-04-29 19:11:20 +0900
committerKatsuhiko Nishimra <ktns.87@gmail.com>2013-04-29 19:12:54 +0900
commit53d772dda111d3aff3be0cf55a510f7d352cb3b5 (patch)
tree20674aa899f9f0fce3199251a2415e2ae0bf312b
parent551289d4f626167084260dbea1c7e7fec6ee6927 (diff)
-Wl,-flat_namespace workaround
-rw-r--r--ext/openbabel/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openbabel/extconf.rb b/ext/openbabel/extconf.rb
index 2299df9..c260508 100644
--- a/ext/openbabel/extconf.rb
+++ b/ext/openbabel/extconf.rb
@@ -37,7 +37,7 @@ begin
ob_include=`pkg-config openbabel-2.0 --cflags-only-I`.sub(/\s+/,'').sub(/-I/,'')
ob_lib=`pkg-config openbabel-2.0 --libs-only-L`.sub(/\s+/,'').sub(/-L/,'')
system "#{RUBY} extconf.rb --with-openbabel-include=#{ob_include} --with-openbabel-lib=#{ob_lib}"
- system "sed -i -e 's/-flat_namespace//' Makefile"
+ system "sed -i -e 's/-Wl,-flat_namespace//;s/-flat_namespace//' Makefile"
system "make"
end
FileUtils.cp(ob_bindings_dir+"/openbabel.#{RbConfig::CONFIG["DLEXT"]}", "./")