Search Postgresql Archives

building a c function

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

 



Hello all,

I know this is a very elementary question, but my excuse
is I have not programmed in C or written makefiles for 
15+ years...

I am trying to write a C-language function, call it my_func.  
But I also have a my_subs.o that does the heavy lifting
for my_func.c.  My makefile is:

MODULES = my_func
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
OBJS = my_subs.o	# Is this right?

But I see no indication in the output that my_subs.o is
being used:

  gcc -O2 -g ... -fpic -shared -o my_func.so my_func.o

How do I tell the makefile to include my_subs.o when building 
the shared lib?  


-- 
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