Re: PG_CFLAGS rpath Passthrough Issue

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: PG_CFLAGS rpath Passthrough Issue
Date: 2025-03-15 15:21:06
Message-ID: 1C330A08-2708-4FEF-9845-F78BE952AEDE@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mar 15, 2025, at 07:58, Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2025-03-15 15:50:02 Re: Changing the state of data checksums in a running cluster
Previous Message Andres Freund 2025-03-15 15:20:23 Re: BitmapHeapScan streaming read user and prelim refactoring