Re: building a c function

From: Stuart McGraw <smcg2297(at)frii(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: building a c function
Date: 2010-03-18 23:14:30
Message-ID: 4BA2B3D6.4040602@frii.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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. :-(

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Grant Allen 2010-03-18 23:18:11 Re: Many-to-many problem
Previous Message Joe Conway 2010-03-18 23:08:40 Re: Many-to-many problem