> On 11 Mar 2024, at 11:41, Michał Kłeczek <mic...@kleczek.org> wrote:
> 
> Hi,
> 
> I am trying to create an extension that delegates some calls to btree_gist 
> functions:
> 
> DirectFunctionCall5Coll(
>                gbt_text_consistent, …other arguments);
> 
> Basic PGXS Makefile does not work - I get linker error: 
> 
> Undefined symbols for architecture arm64:
>  "_gbt_text_consistent", referenced from:
> 
> 
> Anyone could provide me with some hints?

I’ve added:
PG_LDFLAGS += -L$(shell $(PG_CONFIG) --pkglibdir) -lbtree_gist

to Makefile and I get the following:

ld: library 'btree_gist' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Note that I am on Mac and btree_gist.dylib is present in $(pg_config —pkglibdir)

—
Michal

Reply via email to