Re: [Patch] Add missing libraries to Libs.private of libpq.pc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Patch] Add missing libraries to Libs.private of libpq.pc
Дата
Msg-id 751334.1593636869@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [Patch] Add missing libraries to Libs.private of libpq.pc  (Sandro Mani <manisandro@gmail.com>)
Список pgsql-hackers
Sandro Mani <manisandro@gmail.com> writes:
> The following patch, which we added to build mingw-postgresql on Fedora, 
> adds some missing libraries to Libs.private of libpq.pc, discovered when 
> attempting to statically link with libpq:

TBH, I think we should just reject this patch.  We do not encourage or
support statically linking libpq (and I thought that was against
distro-level policies in Fedora, as well --- such policies certainly
existed when I worked for Red Hat).  Moreover, the proposed patch
requires us to absorb assumptions about the dependencies of external
libraries that we really shouldn't be making.  I fear that it risks
causing new problems on other platforms, or at the very least
unnecessarily bloating libpq's dependency footprint.  In particular,
creating a hard dependency on -liconv regardless of build options
seems right out.

            regards, tom lane



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

Предыдущее
От: Vik Fearing
Дата:
Сообщение: Re: SQL-standard function body
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: v12 and TimeLine switches and backups/restores