Re: Linker errors while creating a PostgreSQL C extension function.

Поиск
Список
Период
Сортировка
От Dmitry Igrishin
Тема Re: Linker errors while creating a PostgreSQL C extension function.
Дата
Msg-id CAAfz9KNSf08FqKtu+b62x5kgFa8REmEftHp6ZfHE8um2xRZ14w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Linker errors while creating a PostgreSQL C extension function.  (TalGloz <glozmantal@gmail.com>)
Ответы Re: Linker errors while creating a PostgreSQL C extension function.  (TalGloz <glozmantal@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: TalGloz
Дата:
Сообщение: Re: Linker errors while creating a PostgreSQL C extension function.
Следующее
От: TalGloz
Дата:
Сообщение: Re: Linker errors while creating a PostgreSQL C extension function.