Re: PG vs LLVM 12 on seawasp, next round - Mailing list pgsql-hackers

From Andres Freund
Subject Re: PG vs LLVM 12 on seawasp, next round
Date
Msg-id 20210215180158.dn3vkaag35co6non@alap3.anarazel.de
Whole thread Raw
In response to Re: PG vs LLVM 12 on seawasp, next round  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: PG vs LLVM 12 on seawasp, next round  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Hi,

On 2021-02-15 10:05:32 +0100, Fabien COELHO wrote:
> > show?  What do you have in seawap's LD_LIBRARY_PATH, and is the
> > problem that you need to add /home/fabien/clgtk/lib to it
> 
> Argh. Would it be so stupid? :-( I thought the configuration stuff would
> manage the link path automatically, which may be quite naïve, indeed.

The only way to do that is to add an rpath annotation, and e.g. distros
don't like that - there's some security implications.

> I've added an explicit LD_LIBRARY_PATH, which will be triggered at some
> point later.

You can also do something like LDFLAGS="$LDFLAGS -Wl,-rpath,$(llvm-config --libdir)"
or such.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Jesse Zhang
Date:
Subject: Re: SSL SNI
Next
From: Anastasia Lubennikova
Date:
Subject: Re: CREATE INDEX CONCURRENTLY on partitioned index