diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-14 03:21:27 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-14 03:21:27 +0000 |
| commit | 296fb57b2009c0dd69fe7444b5210afd5f7996f2 (patch) | |
| tree | 504eacb9d5e1934bda444e98e79699bee2f2fb97 /src/pl | |
| parent | 65ff0ed455639f72207c0d5b5e9bc09de2da0d40 (diff) | |
Make pltcl work on Win32. Magnus Hagander
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/tcl/Makefile | 6 | ||||
| -rw-r--r-- | src/pl/tcl/pltcl.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index a10de622a82..9c9ead94312 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -2,7 +2,7 @@ # # Makefile for the pltcl shared object # -# $PostgreSQL: pgsql/src/pl/tcl/Makefile,v 1.42 2004/01/21 19:04:11 tgl Exp $ +# $PostgreSQL: pgsql/src/pl/tcl/Makefile,v 1.43 2004/09/14 03:21:27 tgl Exp $ # #------------------------------------------------------------------------- @@ -29,7 +29,11 @@ endif endif +ifneq ($(PORTNAME), win32) SHLIB_LINK = $(BE_DLLLIBS) $(TCL_LIB_SPEC) $(TCL_LIBS) -lc +else +SHLIB_LINK = $(TCL_LIB_SPEC) $(BE_DLLLIBS) +endif NAME = pltcl SO_MAJOR_VERSION = 2 diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c index f344d4ad676..da1cee09adf 100644 --- a/src/pl/tcl/pltcl.c +++ b/src/pl/tcl/pltcl.c @@ -31,7 +31,7 @@ * ENHANCEMENTS, OR MODIFICATIONS. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.92 2004/09/13 20:09:39 tgl Exp $ + * $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.93 2004/09/14 03:21:27 tgl Exp $ * **********************************************************************/ @@ -233,6 +233,11 @@ pltcl_init(void) if (pltcl_pm_init_done) return; +#ifdef WIN32 + /* Required on win32 to prevent error loading init.tcl */ + Tcl_FindExecutable(""); +#endif + /************************************************************ * Create the dummy hold interpreter to prevent close of * stdout and stderr on DeleteInterp |
