From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | "David E(dot) Wheeler" <david(at)justatheory(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: PG_CFLAGS rpath Passthrough Issue |
Date: | 2025-03-14 21:13:52 |
Message-ID: | 251b7f4808e59c1d6759843e4c2e86cee03d5c40.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 2025-03-14 at 12:58 -0400, David E. Wheeler wrote:
> I'm trying to compile an extension with PG_CFLAGS1[1]:
>
> ```sh
> make PG_CFLAGS='-Wl,-rpath,$ORIGIN'
> ```
>
> This works, but for some reason the rpath value is truncated:
>
> ```console
> # chrpath -l src/semver.so
> src/semver.so: RUNPATH=RIGIN
> ```
>
> Do I need to do something different to include the missing characters `$O`? Or is there an issue with the quoting of these variables in PGXS?
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.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Florents Tselai | 2025-03-14 21:44:54 | Re: like pg_shmem_allocations, but fine-grained for DSM registry ? |
Previous Message | Laurenz Albe | 2025-03-14 21:01:09 | Re: Disabling vacuum truncate for autovacuum |