[HACKERS] building libpq.a static library

Поиск
Список
Период
Сортировка
От Jeroen Ooms
Тема [HACKERS] building libpq.a static library
Дата
Msg-id CABFfbXuxyO20JN8T+CyfSe29T-GTON69FrKHQ=c9jDMxnm6C_w@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] building libpq.a static library  (Jan de Visser <jan@de-visser.net>)
Re: [HACKERS] building libpq.a static library  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I maintain static libraries for libpq for the R programming language
(we need static linking to ship with the binary packages).
Unfortunately currently the standard postgres makefile only generates
a shared library for libpq, not a static one.

In order to make a static library I always manually edit
./src/interfaces/libpq/Makefile and add a target:

libpq.a: $(OBJS) ar rcs $@ $^

And then run 'make libpq.a' in the libpq directory.

This works but it's a bit of a pain to maintain. I was wondering if
this hack could be merged so that the standard 'configure
--enable-static' script would install a static library for libpq
alongside the shared one.



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: [HACKERS] WIP Patch: Pgbench Serialization and deadlock errors
Следующее
От: Sandeep Thakkar
Дата:
Сообщение: [HACKERS] PostgreSQL10 beta2 with ICU - initdb fails on MacOS