Re: [GENERAL] pgxs question - linking c-functions to external libraries

2014-12-12 Thread Alan Nilsson
Awesome - thanks Tom, works. alan > On Dec 12, 2014, at 1:06 PM, Tom Lane wrote: > > Alan Nilsson writes: >> I am trying to link libuuid into a custom extension, here is my make file >> (building PG 9.3.5 on CentOS 6.5 (GCC 4.4.7) fwiw): > >> MODULES = aitpowerpg >> EXTENSION = aitpowerpg >>

Re: [GENERAL] pgxs question - linking c-functions to external libraries

2014-12-12 Thread Tom Lane
Alan Nilsson writes: > I am trying to link libuuid into a custom extension, here is my make file > (building PG 9.3.5 on CentOS 6.5 (GCC 4.4.7) fwiw): > MODULES = aitpowerpg > EXTENSION = aitpowerpg > DATA = aitpowerpg--1.0.sql > SHLIB_LINK += -luuid > ifdef USE_PGXS > PG_CONFIG = pg_config >

Re: [GENERAL] pgxs question - linking c-functions to external libraries

2014-12-12 Thread Alan Nilsson
I recently had need to do the same thing and I am having no luck. Admittedly, I am not too keen on the postgres build setup and have not debugged this extensively, but rather hoped there was an easy answer up front. That said…. I am trying to link libuuid into a custom extension, here is my ma

Re: [GENERAL] pgxs question - linking c-functions to external libraries

2013-06-19 Thread Peter Eisentraut
On 6/6/13 11:49 PM, Rad Cirskis wrote: > Hi John, > have you managed to get it to link with external shared libs? Sure, many extensions to that. Do something like SHLIB_LINK += -lfoo in your Makefile. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to y

Re: [GENERAL] pgxs question - linking c-functions to external libraries

2008-05-20 Thread johnduffy
A typo on my part in my posting. My Makefile has: SHLIB_LINK = -lgsl -lgslcblas Regards John Quoting Martijn van Oosterhout <[EMAIL PROTECTED]>: > On Mon, May 19, 2008 at 06:23:03PM +0100, [EMAIL PROTECTED] wrote: > > Thanks for the reply. My GSL libraries, 'libgsl' and 'libgslcblas', are in

Re: [GENERAL] pgxs question - linking c-functions to external libraries

2008-05-19 Thread Martijn van Oosterhout
On Mon, May 19, 2008 at 06:23:03PM +0100, [EMAIL PROTECTED] wrote: > Thanks for the reply. My GSL libraries, 'libgsl' and 'libgslcblas', are in the I saw that and then in your previous message: > > > PG_CPPFLAGS = -lgsl -lgslcblas > > > PG_LIBS = -lgsl -gslcblas > > > SHLIB_LINK = -lgsl -gslcblas

Re: [GENERAL] pgxs question - linking c-functions to external libraries

2008-05-19 Thread johnduffy
Tom Thanks for the reply. My GSL libraries, 'libgsl' and 'libgslcblas', are in the /usr/lib directory as GSL and the GSL development files were installed via Fedora 8 RPM's. I'm a relative newbie to programming, so I thought the -L switch is only required to add a non-standard library location to

Re: [GENERAL] pgxs question - linking c-functions to external libraries

2008-05-19 Thread Tom Lane
[EMAIL PROTECTED] writes: > My functions compile fine using PGXS, but don't link against the GSL > libraries. > How do I specify the GSL libraries as external libraries to link against in > the > PGXS Makfile? I have tried the following which don't work: > PG_CPPFLAGS = -lgsl -lgslcblas > PG_LIB