Re: [GENERAL] Writing C functions - Mailing list pgsql-general

From Alexey Vyskubov
Subject Re: [GENERAL] Writing C functions
Date
Msg-id 20000124023610.A17280@byte-unix.piter-press.ru
Whole thread Raw
In response to Writing C functions  (Jeff Davis <jeff95350@yahoo.com>)
List pgsql-general
> After you have written a functions.c file, how do you
> compile it how postgres wants it with gcc?

Well. It depends on your OS.
Under OpenBSD works

gcc -fpic -c -o file.o file.c
ld -Bshareable -o file.so file.c

info gcc should help you.

--
Alexey

pgsql-general by date:

Previous
From: "Ed Bras"
Date:
Subject: RE: Where is the Database log file ?
Next
From: Jeff Davis
Date:
Subject: More C function questions