From bb29f637c5b4dbf146f52e5f6a40238dbb0d8044 Mon Sep 17 00:00:00 2001 From: msepga Date: Thu, 21 Dec 2023 15:41:56 -0500 Subject: [PATCH] Link to `-lm` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a2640dde..b8e1dcf4 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ ifeq ($(USE_PROTOBUF_CPP),1) else override CXXFLAGS += -O3 -g endif - override TEST_LDFLAGS += `pkg-config --libs protobuf` -lstdc++ + override TEST_LDFLAGS += `pkg-config --libs protobuf` -lstdc++ -lm # Don't use regular Protobuf-C or JSON implementation (instead implement the same methods using the C++ library) SRC_FILES := $(filter-out src/pg_query_outfuncs_json.c src/pg_query_outfuncs_protobuf.c, $(SRC_FILES))