Re: --with-tcl build on AIX (and others) fails

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "PostgreSQL Development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: --with-tcl build on AIX (and others) fails
Date: 2002-02-25 11:47:20
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA41EB521@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Archana Bharatee 2002-02-25 12:56:57 decode()
Previous Message Jean-Michel POURE 2002-02-25 10:14:10 pgAdmin2 Japanese display