Re: PG_CFLAGS rpath Passthrough Issue - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: PG_CFLAGS rpath Passthrough Issue
Date
Msg-id 1C330A08-2708-4FEF-9845-F78BE952AEDE@justatheory.com
Whole thread Raw
In response to Re: PG_CFLAGS rpath Passthrough Issue  (Álvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
On Mar 15, 2025, at 07:58, Álvaro Herrera <alvherre@alvh.no-ip.org> wrote:

> It's make.  From its info manual:

Oh, that explains it. It hadn’t occurred to me that make could eval strings passed to it like that, but of course it
does.
>
> I'm surprised that you don't need \$\$ though.  I wonder if
>  make CFLAGS='-Wl,-rpath,$$ORIGIN'
> isn't enough actually?

Oddly, no:

# make CFLAGS='-Wl,-rpath,$$ORIGIN'
# chrpath src/semver.so
src/semver.so: RUNPATH=

Gotta have the backslash.

Best,

David


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: BitmapHeapScan streaming read user and prelim refactoring
Next
From: Tomas Vondra
Date:
Subject: Re: Changing the state of data checksums in a running cluster