
> I think what should work is this:  Assign
> 
> SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS)
> 
> unconditionally.  If the port doesn't like mention of shared lib
> dependencies, it should ignore SHLIB_LINK in Makefile.shlib.  
> If the port wants to have -lc, it should add it to SHLIB_LINK in Makefile.shlib.

Yes, that was also my first take, but then it broke HPUX, because HPUX does 
not add -lc in Makefile.shlib.

There are some other "wrong" -lc's for ports that use the compiler for linking.

One open Problem is, that $(TCL_LIB_SPEC) is not gcc safe when tcl was built with
a native compiler but pg is to be built with gcc (I guess this is quite common on 
AIX, since you get tcl from BULL, but build pg yourself).

TCL_LIB_SPEC='-bI:/usr/local/lib/libtcl8.2${TCL_DBGX}.exp'
but should be:
TCL_LIB_SPEC='-Wl,-bI:/usr/local/lib/libtcl8.2${TCL_DBGX}.exp'

Any idea how to fix this ?

Andreas

Mon, 25 Feb 2002 12:47:20 +0100
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: --with-tcl build on AIX (and others) fails 