Received: from piglet.ip.net.ua (piglet.ip.net.ua [193.193.198.1]) by postgresql.org (8.11.3/8.11.4) with SMTP id g0N9BPl55722 for ; Wed, 23 Jan 2002 04:11:25 -0500 (EST) (envelope-from seva@sevasoft.kiev.ua) Received: (qmail 7455 invoked by uid 1000); 23 Jan 2002 09:11:16 -0000 Date: Wed, 23 Jan 2002 11:11:16 +0200 From: Vsevolod Lobko To: Tom Lane Cc: Brent Verner , Peter Eisentraut , Murray Prior Hobbs , Lamar Owen , pgsql-hackers@postgresql.org Subject: pltcl build problem on FreeBSD (was: Re: pltlc and pltlcu problems) Message-ID: <20020123111115.A7382@piglet.ipnet> References: <6532.1011567127@sss.pgh.pa.us> <20020120190256.A12325@rcfile.org> <7032.1011572210@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <7032.1011572210@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Sun, Jan 20, 2002 at 07:16:50PM -0500 X-Archive-Number: 200201/1020 X-Sequence-Number: 18008 On Sun, Jan 20, 2002 at 07:16:50PM -0500, Tom Lane wrote: > Brent Verner 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?