|
4 | 4 | # Makefile for the pltcl shared object |
5 | 5 | # |
6 | 6 | # IDENTIFICATION |
7 | | -# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.9 1998/10/18 19:41:00 tgl Exp $ |
| 7 | +# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.10 1998/12/13 23:46:49 tgl Exp $ |
8 | 8 | # |
9 | 9 | #------------------------------------------------------------------------- |
10 | 10 |
|
@@ -38,14 +38,25 @@ endif |
38 | 38 | endif |
39 | 39 |
|
40 | 40 |
|
41 | | -# Change following to how shared library that contain |
42 | | -# correct references to libtcl must get built on your system. |
| 41 | +# Change following to how shared library that contains |
| 42 | +# references to libtcl must get built on your system. |
43 | 43 | # Since these definitions come from the tclConfig.sh script, |
44 | 44 | # they should work if the shared build of tcl was successful |
45 | | -# on this system. |
46 | | -# |
| 45 | +# on this system. However, tclConfig.sh lies to us a little bit |
| 46 | +# (at least in versions 7.6 through 8.0.4) --- it doesn't mention -lc |
| 47 | +# in TCL_LIBS, but you still need it on systems that want to hear about |
| 48 | +# dependent libraries... |
| 49 | + |
| 50 | +ifneq ($(TCL_SHLIB_LD_LIBS),) |
| 51 | +# link command for a shared lib must mention shared libs it uses |
| 52 | +SHLIB_EXTRA_LIBS=$(TCL_LIBS) -lc |
| 53 | +else |
| 54 | +# link command for a shared lib must NOT mention shared libs it uses |
| 55 | +SHLIB_EXTRA_LIBS= |
| 56 | +endif |
| 57 | + |
47 | 58 | %$(TCL_SHLIB_SUFFIX): %.o |
48 | | - $(TCL_SHLIB_LD) -o $@ $< $(TCL_SHLIB_LD_LIBS) $(TCL_LIB_SPEC) $(TCL_LIBS) |
| 59 | + $(TCL_SHLIB_LD) -o $@ $< $(TCL_LIB_SPEC) $(SHLIB_EXTRA_LIBS) |
49 | 60 |
|
50 | 61 |
|
51 | 62 | # |
|
0 commit comments