summaryrefslogtreecommitdiff
path: root/src/pl
diff options
context:
space:
mode:
authorTom Lane2000-05-23 02:12:46 +0000
committerTom Lane2000-05-23 02:12:46 +0000
commitac6637485be0fd6cd477139020b30d938ca9359b (patch)
treefd6d4ce64f56806b061abb55ed2fe340815ceac3 /src/pl
parentaca5b34427f2ea8dd0e7fae076afeae58db611a4 (diff)
Transmit -I switches selected by configure (particularly those from
--with-includes) to makefiles for pltcl and plperl, so that these switches will be used even though we do not want other top-level CFLAGS. Ain't it fun trying to support multiple-compiler platforms?
Diffstat (limited to 'src/pl')
-rw-r--r--src/pl/plperl/Makefile.PL2
-rw-r--r--src/pl/tcl/Makefile6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pl/plperl/Makefile.PL b/src/pl/plperl/Makefile.PL
index 7980fa436f..565e8bbd28 100644
--- a/src/pl/plperl/Makefile.PL
+++ b/src/pl/plperl/Makefile.PL
@@ -54,7 +54,7 @@ my $perllib = "-L$Config{archlibexp}/CORE -lperl";
WriteMakefile( 'NAME' => 'plperl',
dynamic_lib => { 'OTHERLDFLAGS' => "$opcode $perllib" } ,
- INC => '-I$(SRCDIR)/include -I$(SRCDIR)/backend',
+ INC => '-I$(SRCDIR)/include -I$(SRCDIR)/backend $(PGSQL_INCLUDES)',
XS => { 'SPI.xs' => 'SPI.c' },
OBJECT => 'plperl.o eloglvl.o SPI.o',
);
diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile
index 65c4a05883..8400d364f3 100644
--- a/src/pl/tcl/Makefile
+++ b/src/pl/tcl/Makefile
@@ -4,7 +4,7 @@
# Makefile for the pltcl shared object
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.13 2000/05/22 23:56:44 momjian Exp $
+# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.14 2000/05/23 02:12:44 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -66,11 +66,11 @@ CC = $(TCL_CC)
# Instead use TCL's CFLAGS plus necessary -I directives.
# Can choose either TCL_CFLAGS_OPTIMIZE or TCL_CFLAGS_DEBUG here, as needed
-CFLAGS+= $(TCL_CFLAGS_OPTIMIZE)
+CFLAGS= $(TCL_CFLAGS_OPTIMIZE)
CFLAGS+= $(TCL_SHLIB_CFLAGS) $(TCL_DEFS)
-CFLAGS+= -I$(SRCDIR)/include -I$(SRCDIR)/backend
+CFLAGS+= -I$(SRCDIR)/include -I$(SRCDIR)/backend $(PGSQL_INCLUDES)
#
# Uncomment the following to enable the unknown command lookup