MINGW-packages/mingw-w64-postgresql-16/postgresql-9.4.1-pl-tcl.patch
Алексей 525ded60a6
Add PostgreSQL package version 16 (#24716)
* Add PostgreSQL package version 16

* Use commit for pg_probackup fetch sources

* Update ck=hecksums
2025-07-03 14:05:05 +03:00

48 lines
1.3 KiB
Diff

--- a/src/pl/tcl/Makefile
+++ b/src/pl/tcl/Makefile
@@ -13,10 +13,7 @@
override CPPFLAGS := -I. -I$(srcdir) $(TCL_INCLUDE_SPEC) $(CPPFLAGS)
-# On Windows, we don't link directly with the Tcl library; see below
-ifneq ($(PORTNAME), win32)
SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS)
-endif
PGFILEDESC = "PL/Tcl - procedural language"
@@ -32,23 +29,6 @@
REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-extension=pltcl
REGRESS = pltcl_setup pltcl_queries pltcl_trigger pltcl_call pltcl_start_proc pltcl_subxact pltcl_unicode pltcl_transaction
-# 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)
- gendef - $^ > $@
-
-endif # win32
include $(top_srcdir)/src/Makefile.shlib
@@ -95,9 +75,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