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