From: Ben Pfaff Date: Sat, 7 Feb 2009 05:49:44 +0000 (-0800) Subject: Link against -lws2_32 on Windows. X-Git-Tag: v0.7.3~305 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=f53a8edca920c02c6fd4cc40e56606d665e71a25 Link against -lws2_32 on Windows. Gnulib commit df1da811, "Fix link errors on Windows when close module is used", adds a Makefile variable $(LIB_CLOSE) that expands to -lws2_32. This commit adds that variable to the linker command line. It might not be necessary to add this to both pspp and psppire, but it shouldn't hurt. --- diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 2183e4e8..1549da47 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -61,7 +61,8 @@ src_ui_gui_psppire_LDADD = \ src/libpspp-core.la \ $(GTK_LIBS) \ $(GLADE_LIBS) \ - @LIBINTL@ + @LIBINTL@ \ + $(LIB_CLOSE) src_ui_gui_psppiredir = $(pkgdatadir) diff --git a/src/ui/terminal/automake.mk b/src/ui/terminal/automake.mk index 5ab09857..cd47b62e 100644 --- a/src/ui/terminal/automake.mk +++ b/src/ui/terminal/automake.mk @@ -27,7 +27,8 @@ src_ui_terminal_pspp_LDADD = \ src/libpspp-core.la \ $(NCURSES_LIBS) \ $(LIBICONV) \ - @LIBINTL@ @LIBREADLINE@ + @LIBINTL@ @LIBREADLINE@ \ + $(LIB_CLOSE) src_ui_terminal_pspp_LDFLAGS = $(PSPP_LDFLAGS) $(PG_LDFLAGS)