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

From David E. Wheeler
Subject Re: PG_CFLAGS rpath Passthrough Issue
Date
Msg-id A012507E-BE35-4730-8F5C-CB03C6D564EA@justatheory.com
Whole thread Raw
In response to Re: PG_CFLAGS rpath Passthrough Issue  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: PG_CFLAGS rpath Passthrough Issue
List pgsql-hackers
On Mar 14, 2025, at 17:13, Laurenz Albe <laurenz.albe@cybertec.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
combinationsof escaping, but this weird double-$ never occurred to me. 

Best,

David
Attachment

pgsql-hackers by date:

Previous
From: Florents Tselai
Date:
Subject: Re: like pg_shmem_allocations, but fine-grained for DSM registry ?
Next
From: Tom Lane
Date:
Subject: Not-terribly-safe checks for CRC intrinsic support