Re: [PATCH] Support static linking against LLVM

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [PATCH] Support static linking against LLVM
Дата
Msg-id 20230811174344.j2zoees62pz47av2@awork3.anarazel.de
обсуждение исходный текст
Ответ на [PATCH] Support static linking against LLVM  (Marcelo Juchem <juchem@gmail.com>)
Ответы Re: [PATCH] Support static linking against LLVM
Список pgsql-hackers
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 order to statically link, one must pass `--link-static` to
> `llvm-config` when listing linker flags (`--ldflags`) and libraries
> (`--libs`).
> 
> This patch enables custom flags to be passed to `llvm-config` linker
> related invocations through the environment variable
> `LLVM_CONFIG_LINK_ARGS`.
> 
> To statically link against LLVM it suffices, then, to call `configure`
> with environment variable `LLVM_CONFIG_LINK_ARGS=--link-static`.

I'm not opposed to it, but I'm not sure I see much need for it either. Do you
have a specific use case for this?

Greetings,

Andres Freund



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Marcelo Juchem
Дата:
Сообщение: Re: [PATCH] Support static linking against LLVM
Следующее
От: Andres Freund
Дата:
Сообщение: Re: walsender "wakeup storm" on PG16, likely because of bc971f4025c (Optimize walsender wake up logic using condition variables)