Re: plpython vs _POSIX_C_SOURCE

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: plpython vs _POSIX_C_SOURCE
Дата
Msg-id 20230125023246.trnwn42dnj3e4ikc@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: plpython vs _POSIX_C_SOURCE  (Andres Freund <andres@anarazel.de>)
Ответы Re: plpython vs _POSIX_C_SOURCE  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Hi,

On 2023-01-24 17:48:56 -0800, Andres Freund wrote:
> Also for autoconf, I needed to link
> $prefix/lib/python3.11/config-3.11/libpython3.11.a
> to
> $prefix/lib/libpython3.11.a
> That might be a python version difference or be related to building python
> with --enable-shared - but I see saw other problems without --enable-shared.

That actually doesn't quite work right. One needs to either link to the file
by name (i.e. just $prefix/lib/libpython3.11.so instead of -lpython3.11), or
create a wrapper .a "manually". I.e.

ar crs $prefix/lib/libpython3.11.a $prefix/lib/libpython3.11.so

I tried quite a few things and got confused between the attempts.


> I ran out of energy to test on aix with xlc, I spent way more time on this
> than I have already. I'll pick it up later.

Building in the background now.

Greetings,

Andres Freund



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: BF animal malleefowl reported an failure in 001_password.pl
Следующее
От: Robert Haas
Дата:
Сообщение: Re: GUCs to control abbreviated sort keys