Re: building a c function - Mailing list pgsql-general

From Stuart McGraw
Subject Re: building a c function
Date
Msg-id 4BA2B3D6.4040602@frii.com
Whole thread Raw
In response to Re: building a c function  (Carsten Kropf <ckropf2@fh-hof.de>)
List pgsql-general
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.  :-(

pgsql-general by date:

Previous
From: "Vikram Patil"
Date:
Subject: AIX postgresql error
Next
From: Grant Allen
Date:
Subject: Re: Many-to-many problem