This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
WIN-11: add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec if compiling for win32
- From: Adam Megacz <patches at lists dot megacz dot com>
- To: java-patches at gcc dot gnu dot org
- Date: 04 Feb 2002 16:07:43 -0800
- Subject: WIN-11: add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec if compiling for win32
- Organization: Myself
This patch is against a checkout that already has my --with-jc1-spec
and --with-lib-spec patches, so the line numbers might not match
up. However, it can be used independantly of that patch.
Ok to commit?
- a
2002-02-04 Adam Megacz <adam@xwt.org>
* configure.in: Add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec
if compiling for win32
--- configure.in Mon Feb 4 15:47:52 2002
+++ configure.in Mon Feb 4 15:54:18 2002
@@ -246,7 +246,14 @@
AC_LINK_FILES(java/lang/${PLATFORM}Process.java, java/lang/ConcreteProcess.java)
AC_LINK_FILES(java/lang/nat${PLATFORM}Process.cc, java/lang/natConcreteProcess.cc)
-SYSTEMSPEC=
+case "${host}" in
+ *mingw*)
+ SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
+ ;;
+ *)
+ SYSTEMSPEC=
+ ;;
+esac
AC_SUBST(SYSTEMSPEC)
LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"