Extension doesn't link libaspell and libstdc++ on OpenBSD
Status: Alpha
Brought to you by:
matthias_veit
Hello,
After intalling raspell my rails ap dumps core with:
ruby:/usr/local/lib/ruby/gems/1.8/gems/raspell-1.1/lib/raspell.so: undefined symbol 'new_aspell_config'
lazy binding failed!
This is because libstdc++ and libaspell are not linked into the raspell.so.
The following patch to extconf.rb fixes raspell.so so it works on OpenBSD:
--- extconf.rb.orig Tue Feb 26 12:03:53 2008
+++ extconf.rb Tue Feb 26 11:52:16 2008
@@ -1,5 +1,7 @@
require "mkmf"
+$LIBS += " -lstdc++ -laspell"
+
have_header("ruby.h")
have_header("aspell.h")
have_library("aspell")