Re: --with-tcl build on AIX (and others) fails - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: --with-tcl build on AIX (and others) fails
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA41EB521@m0114.s-mxs.net
Whole thread Raw
In response to --with-tcl build on AIX (and others) fails  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
> 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


pgsql-hackers by date:

Previous
From: Jean-Michel POURE
Date:
Subject: pgAdmin2 Japanese display
Next
From: Mark kirkwood
Date:
Subject: Re: [SQL] Transient Disk Usage Higher In 7.2 ?