[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile-2.0.pc misses a few dependency libraries

From: Eli Zaretskii
Subject: Re: guile-2.0.pc misses a few dependency libraries
Date: Tue, 31 Jan 2012 18:57:14 +0200

> From: address@hidden (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, 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  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, I was able to link the program successfully
with no unresolved externals.

Btw, shouldn't get the same changes?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]