Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: What's with this lib suffix?


  • From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
  • To: Thomas Hallgren <thomas(at)tada(dot)se>
  • Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: What's with this lib suffix?
  • Date: Sat, 25 Feb 2006 12:17:20 -0300
  • Message-id: <20060225151720(dot)GA4756(at)surnet(dot)cl>

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.



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group