Re: pgxs question - linking c-functions to external libraries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgxs question - linking c-functions to external libraries
Дата
Msg-id 4789.1211206661@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgxs question - linking c-functions to external libraries  (johnduffy@f2s.com)
Ответы Re: pgxs question - linking c-functions to external libraries
Список pgsql-general
johnduffy@f2s.com 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_LIBS = -lgsl -gslcblas
> SHLIB_LINK = -lgsl -gslcblas

> My PGXS makefile is:

> MODULES pg_gsl
> PGXS := $(shell $(PG_CONFIG) --pgxs)
> include $(PGXS)

SHLIB_LINK is the right thing for MODULES.  Maybe you forgot a -L
switch?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: johnduffy@f2s.com
Дата:
Сообщение: pgxs question - linking c-functions to external libraries
Следующее
От: Bohdan Linda
Дата:
Сообщение: Vacuuming on heavily changed databases