[Top][All Lists]

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

Re: Link errors on mingw crosscompile

From: John Darrington
Subject: Re: Link errors on mingw crosscompile
Date: Tue, 3 Feb 2009 16:00:12 +0900
User-agent: Mutt/1.5.13 (2006-08-11)

That seems to fix the link problem (-lwsock32 wasn't necessary after
all).  I don't have any platform on which to run the mingw version,
but at least it builds.


On Mon, Feb 02, 2009 at 10:42:37PM -0800, Ben Pfaff wrote:
     John Darrington <address@hidden> writes:
     > On Mon, Feb 02, 2009 at 09:54:46PM -0800, Ben Pfaff wrote:
     >      modules/close in gnulib has $(LIB_CLOSE) in its Link section.
     > I don't see anything like that in my copy of gnulib (pulled 30 secs ago).
     Er, oops.  It seems that I was working on exactly this problem in
     my copy of gnulib the last time I was in that directory, but
     never finished it or asked bug-gnulib whether it was the correct
     fix.  Apologies.
     Seeing as you have a chance to test it, here's the change.  If
     you apply this to gnulib, and then add $(LIB_CLOSE) to the
     appropriate linker line, does that solve the problem?  If so then
     I'll add a changelog and pass this along to bug-gnulib.  If not,
     can you figure out what additional change is needed (maybe that
     -lwsock32 that you mentioned)?
     diff --git a/m4/close.m4 b/m4/close.m4
     index fcc9fb1..29d3abd 100644
     --- a/m4/close.m4
     +++ b/m4/close.m4
     @@ -22,4 +22,6 @@ AC_DEFUN([gl_REPLACE_CLOSE],
     +  LIB_CLOSE="-lws2_32"
     diff --git a/modules/close b/modules/close
     index bb852d4..138be1b 100644
     --- a/modules/close
     +++ b/modules/close
     @@ -19,6 +19,9 @@
     Ben Pfaff

PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

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