I have an extension I wrote which is actually just a wrapper for a C
api.
The directory structure looks like this.
.
|-- Makefile
|-- extconf.rb
|-- extconf.rb~
|-- libmdc.so
|-- mdc.h
|-- metadata-backup.c~
|-- metadata.c
|-- metadata.c~
|-- metadata.o
|-- metadata.so
`-- mkmf.log
When I generate the makefile, it doesn’t find libmdc.so. How can I fix
this?
require ‘mkmf’
have_header(“mdc.h”)
have_library(‘libmdc.so’,‘MDOpenConnection’)
dir_config(‘metadata’)
create_makefile(‘metadata’)
When I run it, I get
checking for mdc.h… yes
checking for MDOpenConnection() in -llibmdc.so… no
creating Makefile