From: Eli Zaretskii <eliz@gnu.org>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-user@gnu.org
Subject: Re: guile-2.0.pc misses a few dependency libraries
Date: Tue, 31 Jan 2012 18:57:14 +0200 [thread overview]
Message-ID: <837h07res5.fsf@gnu.org> (raw)
In-Reply-To: <87mx96m703.fsf@gnu.org>
> From: ludo@gnu.org (Ludovic Courtès)
> Date: Mon, 30 Jan 2012 00:19:40 +0100
>
> > I finally traced that to the contents of guile-2.0.pc file:
> >
> > Libs: -L${libdir} -lguile-2.0 -Ld:/usr/lib -lgc
> > Libs.private: d:/usr/lib/libgmp.dll.a -Ld:/usr/lib d:/usr/lib/libltdl.dll.a -Ld:/usr/lib -lffi -lregex -lcrypt -lws2_32 -lm
> >
> > However, libguile-2.0.la shows more dependency libraries:
> >
> > dependency_libs=' -lgc -lffi -lunistring -liconv -lregex -lintl -liconv -lgmp -ltdl -lregex -lintl -lwsock32 -lole32 -luuid -lmsvcp60 -lcrypt -lws2_32'
> >
> > As you see, quite a few libraries are missing from guile-2.0.pc, and
> > also a several libraries need to appear more than once in the link
> > command line.
>
> Commit 58f86505d658359508732c8f187bc37d010074d0 (see below) should solve
> most of that, but not all
It solves all of them, thanks.
> I don’t know where -lole32, and -lregex come from, for example.
"-lregex" is needed by regex-posix.c (naturally ;-), since the default
Windows libraries do not include regcomp, regexec, etc. There's a
test in configure that first check the standard library link, then
"-lregex" and "-lrx".
However, @GUILE_LIBS@ already gets edited to include -lregex, so
there's no problems here.
"-lole32" (and a few others) come from libregex.la. However, the
standard link command for the program I'm building (GNU Make, btw)
already includes these libraries even without Guile, so using your
modified guile-2.0.pc.in, I was able to link the program successfully
with no unresolved externals.
Btw, shouldn't guile-2.0-uninstalled.pc.in get the same changes?
Thanks!
next prev parent reply other threads:[~2012-01-31 16:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-28 11:20 guile-2.0.pc misses a few dependency libraries Eli Zaretskii
2012-01-29 23:19 ` Ludovic Courtès
2012-01-30 17:02 ` Mark H Weaver
2012-01-30 17:10 ` Ludovic Courtès
2012-01-31 16:57 ` Eli Zaretskii [this message]
2012-01-31 17:56 ` Ludovic Courtès
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=837h07res5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=guile-user@gnu.org \
--cc=ludo@gnu.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).