diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-11-08 00:58:07 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-11-08 00:58:07 +0000 |
commit | 2768f391a4d9bc587f75d042f70d4527d5224d4e (patch) | |
tree | fcca8f15c70cecfbf1c30d2487340f2c45f143f5 | |
parent | 7d8b794a9a8bd0cd1392b8a4e37f5b5afd9589e2 (diff) | |
download | postgresql-2768f391a4d9bc587f75d042f70d4527d5224d4e.tar.gz postgresql-2768f391a4d9bc587f75d042f70d4527d5224d4e.zip |
There is a problem in the Makefile of libpgtcl on linux (and maybe also on
other platforms). If I do the standard make + make install the shared library
is not linked with the the libpq library and when I try to load it in the
standard Tcl or Tk shell I get a lot of unresolved symbols. The bug doesn't
affect pgtclsh because it is linked also with libpq. The problem exists only
when using the dynamic load feature of Tcl7.5.
From: Massimo Dal Zotto <dz@cs.unitn.it>
-rw-r--r-- | src/interfaces/libpgtcl/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interfaces/libpgtcl/Makefile b/src/interfaces/libpgtcl/Makefile index ff0e99e0f9f..2473451d10c 100644 --- a/src/interfaces/libpgtcl/Makefile +++ b/src/interfaces/libpgtcl/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.3 1996/10/30 06:18:36 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile,v 1.4 1996/11/08 00:58:07 scrappy Exp $ # #------------------------------------------------------------------------- @@ -29,6 +29,11 @@ ifdef KRBVERS CFLAGS+= $(KRBFLAGS) endif +ifdef LINUX_ELF +CFLAGS += -fPIC +CC += -L $(POSTGRESDIR)/lib -lpq +endif + LIBSRCS= pgtcl.c pgtclCmds.c pgtclId.c install-headers: |