Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C369F9A.8080901@ece.gatech.edu> Date: Sat, 05 Jan 2002 01:39:22 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: "Gerrit P. Haase" CC: "Gerrit P. Haase @ cygwin" , "Albert L. Wagner" , "ruby-talk AT ruby-lang DOT org" Subject: Re: Compiling Berkeley db for Ruby under Cygwin References: <3C34978F DOT B943BF96 AT uark DOT edu> <2326966686 DOT 20020105002608 AT familiehaase DOT de> <17028398394 DOT 20020105005000 AT familiehaase DOT de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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. /my/lib/path/ contains libfoo.dll.a libfoo.a Then gcc -L/my/lib/path -lfoo will find and link against /my/lib/path/libfoo.dll.a gcc -static -L/my/lib/path -lfoo will link against /my/lib/path/libfoo.a --Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/