Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0NHxEl41666 for ; Wed, 23 Jan 2002 12:59:14 -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 g0NHxAJ05460; Wed, 23 Jan 2002 12:59:10 -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 g0NHxGF16751; Wed, 23 Jan 2002 12:59:16 -0500 (EST) (envelope-from brent) Date: Wed, 23 Jan 2002 12:59:16 -0500 From: Brent Verner To: Tom Lane Cc: Peter Eisentraut , Vsevolod Lobko , Murray Prior Hobbs , Lamar Owen , pgsql-hackers@postgresql.org Subject: Re: pltcl build problem on FreeBSD (was: Re: pltlc and pltlcu problems) Message-ID: <20020123125916.A16692@rcfile.org> References: <3257.1011804849@sss.pgh.pa.us> <20020123120150.A8035@rcfile.org> <3380.1011805585@sss.pgh.pa.us> <20020123122950.A14509@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020123122950.A14509@rcfile.org> 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 #9: Tue Jan 22 06:49:14 EST 2002 brent@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT X-Archive-Number: 200201/1068 X-Sequence-Number: 18050 [2002-01-23 12:29] Brent Verner said: | [2002-01-23 12:06] Tom Lane said: | | Brent Verner writes: | | > | Will it not work to do | | > | | | > | $(shell echo '$(TCL_SHLIB_LD)' | sed ... | | | | > No. I just tested this, and the $@ still got expanded too early. | | | | [ scratches head ... ] Where is the expansion happening, then? Seems | | weird. | | apparently the $(shell ...) construct expands any shell-like | vars. | | from make's info file: | | The `shell' function performs the same function that backquotes | (``') perform in most shells: it does "command expansion". | | | > We'll need to use the suggested ifeq($(PORTNAME),linux) test. | | | | I don't much like that since it makes an inappropriate assumption, | | viz that if you're on Linux you must have a TCL_SHLIB_LD value that | | hasn't got any $variables in it. I'd prefer to figure out *why* we | | are getting a premature evaluation. | | maybe check for a '$' in the TCL_SHLIB_LD ? I've been trying | $(findstring ...) but have not gotten that to work right yet. The best I can come up with is checking for the offending string 'libtcl.so.0' in the TCL_SHLIB_LD. ifneq (,$(findstring libtcl.so.0,$(TCL_SHLIB_LD))) TCL_SHLIB_LD := $(shell echo '$(TCL_SHLIB_LD)' | sed 's/-Wl,-soname[^ ]*//') endif any better ideas out there? I've exhausted my PG time for today ;-) 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