PG_CFLAGS rpath Passthrough Issue

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: PG_CFLAGS rpath Passthrough Issue
Date: 2025-03-14 16:58:55
Message-ID: 5809860D-19C0-4E11-9551-47EED2D815DC@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Hackers,

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?

Thanks,

David

[1]: https://github.com/postgres/postgres/blob/c7fc880/src/makefiles/pgxs.mk#L58

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dagfinn Ilmari Mannsåker 2025-03-14 17:39:30 More Perl cleanups
Previous Message Nathan Bossart 2025-03-14 15:42:07 Re: Disabling vacuum truncate for autovacuum