[PATCH] Support static linking against LLVM

2023-08-10 Thread Marcelo Juchem
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 order to statically link, one must pass `--link-static` to `llvm-config`

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 agains

Re: [PATCH] Support static linking against LLVM

2023-08-11 Thread Marcelo Juchem
wrote: > 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`). > > >

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 Juch