public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Gerrit P. Haase" <gp@familiehaase.de>
To: cygwin@cygwin.com
Cc: "Albert L. Wagner" <alwagner@uark.edu>,
	"ruby-talk@ruby-lang.org" <ruby-talk@ruby-lang.org>
Subject: Re: Compiling Berkeley db for Ruby under Cygwin
Date: Sat, 05 Jan 2002 03:35:00 -0000	[thread overview]
Message-ID: <8270662136.20020105123424@familiehaase.de> (raw)
In-Reply-To: <3C369F9A.8080901@ece.gatech.edu>

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@familiehaase.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/

  reply	other threads:[~2002-01-05 11:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-03  9:38 Albert L. Wagner
2002-01-03 15:28 ` Gerrit P. Haase
2002-01-04 15:23 ` Gerrit P. Haase
2002-01-04 15:46   ` Gerrit P. Haase
2002-01-04 22:38     ` Charles Wilson
2002-01-05  3:35       ` Gerrit P. Haase [this message]
2002-01-03 15:11 Gareth Pearce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8270662136.20020105123424@familiehaase.de \
    --to=gp@familiehaase.de \
    --cc=alwagner@uark.edu \
    --cc=cygwin@cygwin.com \
    --cc=ruby-talk@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).