Re: PG_CFLAGS rpath Passthrough Issue

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: PG_CFLAGS rpath Passthrough Issue
Date: 2025-03-14 21:46:54
Message-ID: A012507E-BE35-4730-8F5C-CB03C6D564EA@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mar 14, 2025, at 17:13, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:

> It is a quoting issue.
>
> Trial and error showed my that the following works:
>
> make CFLAGS='-Wl,-rpath,\$$ORIGIN'
>
> ... at least when I run it on the shell. Putting it into an RPM spec file
> might require more escaping, no idea.

Confirmed, this works, thank you.

But, just. WAT. 30 years in this business and shell string escaping continues to elude me. I tried lots of different combinations of escaping, but this weird double-$ never occurred to me.

Best,

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-03-14 23:04:22 Not-terribly-safe checks for CRC intrinsic support
Previous Message Florents Tselai 2025-03-14 21:44:54 Re: like pg_shmem_allocations, but fine-grained for DSM registry ?