Setting rpath on llvmjit.so? - Mailing list pgsql-hackers

From Jeff Davis
Subject Setting rpath on llvmjit.so?
Date
Msg-id 1523734355.18521.25.camel@j-davis.com
Whole thread Raw
Responses Re: Setting rpath on llvmjit.so?
List pgsql-hackers
Currently, we don't set rpath for llvmjit.so to include `llvm-config --
libdir`. That means you need to keep LD_LIBRARY_PATH set properly to
use any non-system installation of LLVM.

This isn't unique to LLVM (we only set rpath to the postgres $libdir),
so I thought it might be project policy. But I think it will be worse
for LLVM (and perhaps ICU) where people are more likely to want to run
specific versions. Comments?

Included a simple patch, but it could use some review from someone who
knows more about portable linking and our build system.

Regards,
    Jeff Davis

PS: I also noticed that a autoconf run on master generates some diffs
in configure.


Attachment

pgsql-hackers by date:

Previous
From: David Arnold
Date:
Subject: Re: Proposal: Adding json logging
Next
From: Andres Freund
Date:
Subject: Re: Setting rpath on llvmjit.so?