From 9d8f1394854db1b3b4084991e17a11a4b540236b Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Mon, 28 Jul 2008 15:51:03 +0000 Subject: [PATCH] move -lws2_32 addition after PGXS call --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2080e47..306c1f1 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,6 @@ EXTRA_CLEAN = src/scanner.[ch] src/parser.tab.[ch] PG_CPPFLAGS = -I$(PQINC) SHLIB_LINK = -L$(PQLIB) -lpq -ifeq ($(PORTNAME), win32) -SHLIB_LINK += -lws2_32 -lpgport -endif - TARNAME = plproxy-$(PLPROXY_VERSION) DIST_DIRS = src sql expected config doc debian DIST_FILES = Makefile src/plproxy.h src/rowstamp.h src/scanner.l src/parser.y \ @@ -42,6 +38,10 @@ REGRESS_OPTS = --load-language=plpgsql PGXS = $(shell pg_config --pgxs) include $(PGXS) +ifeq ($(PORTNAME), win32) +SHLIB_LINK += -lws2_32 -lpgport +endif + # parser rules src/scanner.o: src/parser.tab.h src/parser.tab.h: src/parser.tab.c -- 2.39.5