Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0L02xV66819 for ; Sun, 20 Jan 2002 19:02:59 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (root@rdu57-26-120.nc.rr.com [66.57.26.120]) by habanero.hesketh.net (8.11.6/8.11.1) with ESMTP id g0L02kJ23980; Sun, 20 Jan 2002 19:02:46 -0500 X-Received-From: brent@mutt.rcfile.org X-Delivered-To: pgsql-hackers@postgresql.org X-Spam-Filter: check_local@habanero.hesketh.net by digitalanswers.org X-More-Information: http://spamfighter.hesketh.net Received: (from brent@localhost) by mutt.rcfile.org (8.11.6/8.11.6) id g0L02vO12451; Sun, 20 Jan 2002 19:02:57 -0500 (EST) (envelope-from brent) Date: Sun, 20 Jan 2002 19:02:57 -0500 From: Brent Verner To: Tom Lane Cc: Peter Eisentraut , Murray Prior Hobbs , Lamar Owen , pgsql-hackers@postgresql.org Subject: Re: pltlc and pltlcu problems Message-ID: <20020120190256.A12325@rcfile.org> References: <6532.1011567127@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6532.1011567127@sss.pgh.pa.us> User-Agent: Mutt/1.3.19i X-muttrc: $Id: .muttrc,v 1.9 2002/01/02 07:04:49 brent Exp $ X-uname: FreeBSD 4.5-RC #8: Sat Jan 19 03:37:04 EST 2002 brent@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT X-Archive-Number: 200201/822 X-Sequence-Number: 17825 [2002-01-20 17:52] Tom Lane said: | Peter Eisentraut writes: | > You can surely make things a lot worse for those that are using other | > operating systems. I certainly don't agree with making changes just | > because Red Hat blew it. | | It does appear that the problem can be blamed entirely on the RPM | packaging of Tcl. I tried configuring from source on RHL 7.2, and | neither tcl 8.3.2 nor 8.3.4 produce a "soname" switch in TCL_SHLIB_LD. | In fact, grep can't find any occurrence of "soname" anywhere in the | Tcl source distribution. | | Nonetheless, I'm not sure that "do nothing" is an acceptable response | on our part. Agreed. I think working around this borkenness in the Makefile is the best solution; I don't think switching from RTLD_LAZY is good right now. | I tried setting up pltcl's makefile to dike out the offending switch: | | override TCL_SHLIB_LD := $(patsubst %soname%, , $(TCL_SHLIB_LD)) | | but could not get it to work --- gmake's pattern matching logic seems | to be too brain-dead to cope with more than one % in a pattern. And | | override TCL_SHLIB_LD := $(patsubst -Wl,-soname%, , $(TCL_SHLIB_LD)) | | doesn't work either; apparently there's no way to escape the comma. | Anyone know a cute hack to get gmake to do this? 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.*//') cheers. brent -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman