diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile
index b91e81949095a275170875ef8671812d336e1dcd..46113fdf0454ba5d37f164a9df19116660544f89 100644
--- a/src/pl/plperl/GNUmakefile
+++ b/src/pl/plperl/GNUmakefile
@@ -1,5 +1,5 @@
 # Makefile for PL/Perl
-# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.29 2007/02/09 15:56:00 petere Exp $
+# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.30 2007/02/10 04:26:24 tgl Exp $
 
 subdir = src/pl/plperl
 top_builddir = ../../..
@@ -17,8 +17,8 @@ endif
 ifneq (,$(findstring yes, $(shared_libperl)$(allow_nonpic_in_shlib)))
 
 ifeq ($(PORTNAME), win32)
-perl_archlibexp = $(subst \,/,$(perl_archlibexp))
-perl_privlibexp = $(subst \,/,$(perl_privlibexp))
+perl_archlibexp := $(subst \,/,$(perl_archlibexp))
+perl_privlibexp := $(subst \,/,$(perl_privlibexp))
 perl_embed_ldflags = -L$(perl_archlibexp)/CORE -lperl58
 override CPPFLAGS += -DPLPERL_HAVE_UID_GID
 endif
diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile
index b9a0821c0aa3733af76769a27481022ac88ba8e1..0b52c3d238c69894ac55c89cd5bf8de3868bb12d 100644
--- a/src/pl/plpython/Makefile
+++ b/src/pl/plpython/Makefile
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.27 2007/02/09 15:56:00 petere Exp $
+# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.28 2007/02/10 04:26:24 tgl Exp $
 
 subdir = src/pl/plpython
 top_builddir = ../../..
@@ -17,7 +17,7 @@ endif
 # and we have to remove -lpython from the link since we are building our own
 ifeq ($(PORTNAME), win32)
 shared_libpython = yes
-python_includespec = $(subst \,/,$(python_includespec))
+python_includespec := $(subst \,/,$(python_includespec))
 override python_libspec =
 endif