| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <cwilson AT ece DOT gatech DOT edu> |
| 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" <gp AT familiehaase DOT de> |
| CC: | "Gerrit P. Haase @ cygwin" <cygwin AT cygwin DOT com>, |
| "Albert L. Wagner" <alwagner AT uark DOT edu>, | |
| "ruby-talk AT ruby-lang DOT org" <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> |
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 <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
--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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |