blob: b543d62f13e73e3ac9df1daa155ec142fa00c031 [file] [log] [blame] [edit]
--- postgresql-9.4.1/src/pl/tcl/Makefile.orig 2015-02-10 21:23:07.259800000 +0300
+++ postgresql-9.4.1/src/pl/tcl/Makefile 2015-02-10 21:24:31.189800000 +0300
@@ -29,9 +29,10 @@
endif
+SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS)
# On Windows, we don't link directly with the Tcl library; see below
ifneq ($(PORTNAME), win32)
-SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc
+SHLIB_LINK += -lc
endif
@@ -47,25 +48,6 @@
# where to find psql for running the tests
PSQLDIR = $(bindir)
-# Tcl on win32 ships with import libraries only for Microsoft Visual C++,
-# which are not compatible with mingw gcc. Therefore we need to build a
-# new import library to link with.
-ifeq ($(PORTNAME), win32)
-
-tclwithver = $(subst -l,,$(filter -l%, $(TCL_LIB_SPEC)))
-TCLDLL = $(dir $(TCLSH))/$(tclwithver).dll
-
-OBJS += lib$(tclwithver).a
-
-lib$(tclwithver).a: $(tclwithver).def
- dlltool --dllname $(tclwithver).dll --def $(tclwithver).def --output-lib lib$(tclwithver).a
-
-$(tclwithver).def: $(TCLDLL)
- pexports $^ > $@
-
-endif # win32
-
-
include $(top_srcdir)/src/Makefile.shlib
ifeq ($(TCL_SHARED_BUILD), 1)
@@ -93,9 +93,6 @@
clean distclean: clean-lib
rm -f $(OBJS)
rm -rf $(pg_regress_clean_files)
-ifeq ($(PORTNAME), win32)
- rm -f $(tclwithver).def
-endif
maintainer-clean: distclean
rm -f pltclerrcodes.h