Search Postgresql Archives

Re: building a c function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/17/2010 01:56 PM, Carsten Kropf wrote:
> I think, what you probably want to do is something like that:
> MODULE_big = my_funcs
> OBJS = myfunc.o mysubs.o
> PG_CONFIG=/usr/local/pgsql/bin/pg_config
> PGXS := $(shell $(PG_CONFIG) --pgxs)
> include $(PGXS)
> 
> Then you will get a shared library called "my_funcs" which includes both
> of your *.o s and will be deployed to postgres lib dir whenever you call
> "install" on the makefile.

Thanks for the answer Tom and Carsten.  It worked
fine once I figured out that MODULE_big was not
the same as MODULES_big.  :-(

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux