Re: What's with this lib suffix?
От | Alvaro Herrera |
---|---|
Тема | Re: What's with this lib suffix? |
Дата | |
Msg-id | 20060225151720.GA4756@surnet.cl обсуждение исходный текст |
Ответ на | Re: What's with this lib suffix? (Thomas Hallgren <thomas@tada.se>) |
Список | pgsql-hackers |
Thomas Hallgren wrote: > In that case, I'd appreciate some advice on how to use the pgxs package > to compile a 'plug-in'. Looks to me it's only designed to compile > 'shared libraries'. You can just use the Makefile.shlib rules normally and then rename the file during installation. PL/pgSQL does things this way: # In order to use Makefile.shlib, we allow it to build a static # library libplpgsql.a, which we just ignore, as well as a shared # library that it will insist on naming $(shlib). We don't want to # call it that when installed, however, so we ignore the install-shlib # rule and do this instead: install: installdirs all ifeq ($(enable_shared), yes) $(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plpgsql$(DLSUFFIX) else @echo "*****"; \ echo "* PL/pgSQL was not installed due to lack of shared library support."; \ echo "*****" endif -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-hackers по дате отправления: