Link against -lws2_32 on Windows.
[pspp-builds.git] / src / ui / terminal / automake.mk
index 598cdddd8eefaeea38196d188be9e33baeda36f0..cd47b62e7863af1859a725b206225526fa4363e8 100644 (file)
@@ -27,10 +27,11 @@ src_ui_terminal_pspp_LDADD = \
        src/libpspp-core.la \
        $(NCURSES_LIBS) \
        $(LIBICONV) \
-       @LIBINTL@ @LIBREADLINE@
+       @LIBINTL@ @LIBREADLINE@ \
+       $(LIB_CLOSE)
 
 
-src_ui_terminal_pspp_LDFLAGS = $(PG_LDFLAGS)
+src_ui_terminal_pspp_LDFLAGS = $(PSPP_LDFLAGS) $(PG_LDFLAGS)
 
 if RELOCATABLE_VIA_LD
 src_ui_terminal_pspp_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`