From: Brent Verner <brent@rcfile.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Vsevolod Lobko <seva@sevasoft.kiev.ua>
Cc: Murray Prior Hobbs <murray@efone.com>
Cc: Lamar Owen <lamar.owen@wgcr.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: pltcl build problem on FreeBSD (was: Re: pltlc and pltlcu problems)
Date: Wed, 23 Jan 2002 12:59:16 -0500
Message-ID: <20020123125916.A16692@rcfile.org> (raw)
In-Reply-To: <20020123122950.A14509@rcfile.org>
References: <Pine.LNX.4.30.0201231129220.686-100000@peter.localdomain>
<3257.1011804849@sss.pgh.pa.us>
<20020123120150.A8035@rcfile.org>
<3380.1011805585@sss.pgh.pa.us>
<20020123122950.A14509@rcfile.org>
[2002-01-23 12:29] Brent Verner said:
| [2002-01-23 12:06] Tom Lane said:
| | Brent Verner <brent@rcfile.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: brent@rcfile.org, tgl@sss.pgh.pa.us, peter_e@gmx.net, seva@sevasoft.kiev.ua, murray@efone.com, lamar.owen@wgcr.org, pgsql-hackers@postgresql.org
Subject: Re: pltcl build problem on FreeBSD (was: Re: pltlc and pltlcu problems)
In-Reply-To: <20020123125916.A16692@rcfile.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox