[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Link errors on mingw crosscompile
From: |
Ben Pfaff |
Subject: |
Re: Link errors on mingw crosscompile |
Date: |
Mon, 02 Feb 2009 22:42:37 -0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
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)?
Thanks,
Ben.
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],
fi
REPLACE_CLOSE=1
gl_REPLACE_FCLOSE
+ LIB_CLOSE="-lws2_32"
+ AC_SUBST([LIB_CLOSE])
])
diff --git a/modules/close b/modules/close
index bb852d4..138be1b 100644
--- a/modules/close
+++ b/modules/close
@@ -19,6 +19,9 @@ Makefile.am:
Include:
<unistd.h>
+Link:
+$(LIB_CLOSE)
+
License:
LGPLv2+
--
Ben Pfaff
http://benpfaff.org