aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-07-17 01:26:42 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-07-17 01:26:42 +0000
commita2c6bf5a59ee4f8f2989368217f49c10165027c0 (patch)
tree0a3d26e082a4b549de7241fccdf5a2bbdf69b4f8 /src
parent8a70a1c75d69af74f1d72cb7cebd50108a7ae3f5 (diff)
downloadpostgresql-a2c6bf5a59ee4f8f2989368217f49c10165027c0.tar.gz
postgresql-a2c6bf5a59ee4f8f2989368217f49c10165027c0.zip
pltcl seems to be broken on HPUX with recent Tcl versions, because
link needs to specify -lc but doesn't. Quick hack to make it better.
Diffstat (limited to 'src')
-rw-r--r--src/pl/tcl/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile
index decfca5d6e8..59b943273d3 100644
--- a/src/pl/tcl/Makefile
+++ b/src/pl/tcl/Makefile
@@ -2,7 +2,7 @@
#
# Makefile for the pltcl shared object
#
-# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.20 2000/07/01 15:02:31 petere Exp $
+# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.21 2000/07/17 01:26:42 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -39,9 +39,15 @@ ifneq ($(TCL_SHLIB_LD_LIBS),)
# link command for a shared lib must mention shared libs it uses
SHLIB_EXTRA_LIBS=$(TCL_LIBS) -lc
else
+ifeq ($(PORTNAME), hpux)
+# link command for a shared lib must mention shared libs it uses,
+# even though Tcl doesn't think so...
+SHLIB_EXTRA_LIBS=$(TCL_LIBS) -lc
+else
# link command for a shared lib must NOT mention shared libs it uses
SHLIB_EXTRA_LIBS=
endif
+endif
%$(TCL_SHLIB_SUFFIX): %.o
$(TCL_SHLIB_LD) -o $@ $< $(TCL_LIB_SPEC) $(SHLIB_EXTRA_LIBS)