diff options
-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 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"]}", "./") |