This is the mail archive of the
mailing list for the Cygwin project.
Re: Compiling Berkeley db for Ruby under Cygwin
Gerrit P. Haase wrote:
>>1. Use the correct linker flag `-L/path/to/librubys.a/' and look
>> if there is a lib named libcygwin-ruby16.a, isn't the name of
>> the import lib librubys.a or was it changed since 1.6.5 and 1.6.6?
> Ah, no, librubys.a is the static lib, the importlib is:
> /usr/local/lib/libcygwin-ruby16.a in my build.
FYI, ".dll.a" is a recognized extention meaning "import lib". If found
in the library search path, it takes precedence over ".a" unless -static
is used. E.G.
gcc <list of object files> -L/my/lib/path -lfoo
will find and link against /my/lib/path/libfoo.dll.a
gcc -static <list of object files> -L/my/lib/path -lfoo
will link against /my/lib/path/libfoo.a
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html