Re: Rationalizing code-sharing among src/bin/ directories
От | Alvaro Herrera |
---|---|
Тема | Re: Rationalizing code-sharing among src/bin/ directories |
Дата | |
Msg-id | 20160323235833.GA627922@alvherre.pgsql обсуждение исходный текст |
Ответ на | Re: Rationalizing code-sharing among src/bin/ directories (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
Tom Lane wrote: > Alvaro Herrera <alvherre@2ndquadrant.com> writes: > > Tom Lane wrote: > >> And where to put the corresponding header files? > >> src/include/fe-utils? > > > Sounds fair but would that be installed in PREFIX/include/server? > > That'd be a bit odd, but I'm not -1 on that. > > The only other plan I can think of is to put the .h files describing > src/fe-utils files into src/fe-utils itself. Which would sort of match > the existing precedent of src/bin/ files looking into sibling directories > for relevant .h files, but it seems a bit odd too. I think it's better that they end up installed in PREFIX/include/server/fe_utils rather than not installed at all, which is what would happen, unless you were to create a tailored command in make install. For instance we have the ones for src/common in PREFIX/include/server/common, which I suppose is useful for extensions (we do install libpgcommon.a, which would be messy to use otherwise.) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: