Re: [PATCH] Support static linking against LLVM

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [PATCH] Support static linking against LLVM
Дата
Msg-id 20230811181340.sgdl5aenpntohutr@awork3.anarazel.de
обсуждение исходный текст
Ответ на [PATCH] Support static linking against LLVM  (Marcelo Juchem <juchem@gmail.com>)
Список pgsql-hackers
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 libraries we're specifically required to statically link.
> Unfortunately I can't share the specifics of why that's the case.

If you build llvm with just static lib support it should work as-is?


> On a side note, I'd like to take this opportunity to ask you if there's any
> work being done towards migrating away from deprecated LLVM APIs.
> If there's no work being done on that front, I might take a stab at it if
> there's any interest from the PostgreSQL community in that contribution.

Yes: https://postgr.es/m/CA%2BhUKGKNX_%3Df%2B1C4r06WETKTq0G4Z_7q4L4Fxn5WWpMycDj9Fw%40mail.gmail.com


> Migrating to the new APIs will have PostgreSQL require at the minimum
> version 8 of LLVM (released in March 2019).

I think Thomas' patch abstract it enough so that older versions continue to
work...

Greetings,

Andres Freund



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: LLVM 16 (opaque pointers)
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: AssertLog instead of Assert in some places