Re: [PATCH] Support static linking against LLVM

2023-08-12 Thread Marcelo Juchem
On Fri, Aug 11, 2023 at 4:39 PM Andres Freund wrote: > Hi, > > On 2023-08-11 15:06:44 -0500, Marcelo Juchem wrote: > > On Fri, Aug 11, 2023 at 2:53 PM Andres Freund > wrote: > > > > > Hi, > > > > > > On 2023-08-11 13:43:17 -0500, Marcelo Juchem wrote: > > > > I'm not sure I know a good way to cl

Re: [PATCH] Support static linking against LLVM

2023-08-11 Thread Marcelo Juchem
In my case, my product has a very controlled environment. We build all our infrastructure from source and we avoid dynamic linking by design, except where technically not viable (e.g.: pgsql extensions). LLVM is one of the libraries we're specifically required to statically link. Unfortunately I c

Re: [PATCH] Support static linking against LLVM

2023-08-11 Thread Marcelo Juchem
Andres, Tom, I found your names in the git history for JIT and LLVM. Any chance one of you could take a look at the patch? -mj On Thu, Aug 10, 2023 at 2:45 PM Marcelo Juchem wrote: > By default, PostgreSQL doesn't explicitly choose whether to link > statically or dynamically against LLVM when

Re: [PATCH] Support static linking against LLVM

2023-08-11 Thread Andres Freund
Hi, On 2023-08-11 12:59:27 -0500, Marcelo Juchem wrote: > In my case, my product has a very controlled environment. > We build all our infrastructure from source and we avoid dynamic linking by > design, except where technically not viable (e.g.: pgsql extensions). > > LLVM is one of the librarie

Re: [PATCH] Support static linking against LLVM

2023-08-11 Thread Andres Freund
Hi, On 2023-08-10 14:45:47 -0500, Marcelo Juchem wrote: > By default, PostgreSQL doesn't explicitly choose whether to link > statically or dynamically against LLVM when LLVM JIT is enabled (e.g.: > `./configure --with-llvm`). > > `llvm-config` will choose to dynamically link by default. > > In o