Hi,
How do I “have_library” with a static library in extconf.rb/mkmf?
Regards
Paul
Hi,
How do I “have_library” with a static library in extconf.rb/mkmf?
Regards
Paul
How do I "have_library" with a static library in extconf.rb/mkmf?
What is your problem with have_library ?
pigeon% cat extconf.rb
require 'mkmf'
dir_config("db")
puts "ok" if have_library("db", "dbopen")
pigeon%
pigeon% ruby extconf.rb
checking for dbopen() in -ldb... no
pigeon%
pigeon% ruby extconf.rb --with-db-dir=/home/ts/local/db185
checking for dbopen() in -ldb... yes
ok
pigeon%
pigeon% ls /home/ts/local/db185/lib
libdb.a
pigeon%
Guy Decoux