pltcl build problem on FreeBSD (was: Re: pltlc and pltlcu problems) - Mailing list pgsql-hackers

From Vsevolod Lobko
Subject pltcl build problem on FreeBSD (was: Re: pltlc and pltlcu problems)
Date
Msg-id 20020123111115.A7382@piglet.ipnet
Whole thread Raw
In response to Re: pltlc and pltlcu problems  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pltcl build problem on FreeBSD (was: Re: pltlc and pltlcu problems)  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pltcl build problem on FreeBSD (was: Re: pltlc and  (Peter Eisentraut <peter_e@gmx.net>)
Re: pltcl build problem on FreeBSD (was: Re: pltlc and  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Sun, Jan 20, 2002 at 07:16:50PM -0500, Tom Lane wrote:
> Brent Verner <brent@rcfile.org> writes:
> > It seems that substvar operates on each " " separated token in the
> > string.  The following works for me.
> 
> > override TCL_SHLIB_LD := $(shell echo $(TCL_SHLIB_LD) | sed 's/-Wl,-soname.*//')
> 
> I suspect that the above works only because -Wl,-soname is the last
> switch in TCL_SHLIB_LD; any following switches would be removed too.
> Perhaps better
> 
> override TCL_SHLIB_LD := $(shell echo $(TCL_SHLIB_LD) | sed 's/-Wl,-soname[^ ]*//'

Sorry, but by this you broke freebsd build which has:

TCL_SHLIB_LD = ld -shared -x -soname $@

and $@ gets substituted too early

can you restrict this hack by putting something like

ifeq ($(PORTNAME), linux)
override TCL_SHLIB_LD := $(shell echo $(TCL_SHLIB_LD) | sed 's/-Wl,-soname[^ ]*//'
endif

instead?


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: RFD: schemas and different kinds of Postgres objects
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: RFD: schemas and different kinds of Postgres objects