delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/05/06:35:51

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
Date: Sat, 5 Jan 2002 12:34:24 +0100
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
X-Mailer: The Bat! (v1.53t) Business
Reply-To: "Gerrit P. Haase @ cygwin" <cygwin AT cygwin DOT com>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <8270662136.20020105123424@familiehaase.de>
To: cygwin AT cygwin DOT com
CC: "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
In-Reply-To: <3C369F9A.8080901@ece.gatech.edu>
References: <3C34978F DOT B943BF96 AT uark DOT edu>
<2326966686 DOT 20020105002608 AT familiehaase DOT de>
<17028398394 DOT 20020105005000 AT familiehaase DOT de> <3C369F9A DOT 8080901 AT ece DOT gatech DOT edu>
MIME-Version: 1.0

Hallo Charles,

Am 2002-01-05 um 07:39 schriebst du:

> 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

Yep, that is the 'standard' but ruby is ruby;)
Thay have their own syntax like perl too.
There is the static lib, /usr/local/lib/ruby/1.6/i686-cygwin/librubys.a
and an importlib /usr/local/lib/libcygwin-ruby16.a

Maybe a symlink libcygwin-ruby16.a -> libcygwin-ruby16.dll.a
would help?

Gerrit
-- 
=^..^=                                        mailto:gp AT familiehaase DOT de


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019