Re: Linker errors while creating a PostgreSQL C extension function. - Mailing list pgsql-general

From Dmitry Igrishin
Subject Re: Linker errors while creating a PostgreSQL C extension function.
Date
Msg-id CAAfz9KNSf08FqKtu+b62x5kgFa8REmEftHp6ZfHE8um2xRZ14w@mail.gmail.com
Whole thread Raw
In response to Re: Linker errors while creating a PostgreSQL C extension function.  (TalGloz <glozmantal@gmail.com>)
Responses Re: Linker errors while creating a PostgreSQL C extension function.
List pgsql-general
вс, 19 авг. 2018 г. в 15:07, TalGloz <glozmantal@gmail.com>:
>
> Do you mean this command:
>
> seal_diff_cpp.so: seal_diff_cpp.o
>         $(CXX) -Wl,--no-undefined -shared -o seal_diff_cpp.so
> seal_diff_cpp.o $(LDFLAGS)
>
> If yes then the -lseal is added with the $(LDFLAGS) at the end of the
> command.
You've defined LDFLAGS as:
LDFLAGS = -L$(INCLUDE_SEAL_LIB) -llibseal.a -lpthread

I mean it should be defined as:
LDFLAGS = -L$(INCLUDE_SEAL_LIB) -lseal -lpthread

Also, AFAIK, the command should be specified in one line, like that:
seal_diff_cpp.so: seal_diff_cpp.o
        $(CXX) -Wl,--no-undefined -shared -o seal_diff_cpp.so
seal_diff_cpp.o $(LDFLAGS)


pgsql-general by date:

Previous
From: TalGloz
Date:
Subject: Re: Linker errors while creating a PostgreSQL C extension function.
Next
From: TalGloz
Date:
Subject: Re: Linker errors while creating a PostgreSQL C extension function.