Skip to content

Commit e8cab74

Browse files
committed
Added -lz -lstdc++ to LDFLAGS to fix build on (at least) CentOS 8.
Fixes #2
1 parent daa6891 commit e8cab74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ DESC_SET_FILES=$(patsubst %.proto, %.pb, $(wildcard test_protos/*.proto))
2222

2323
PG_CPPFLAGS=-I$(PROTOBUF_ROOT)/src -Wno-deprecated -std=c++17 -Wno-register -DEXT_VERSION_MAJOR=$(EXT_VERSION_MAJOR) -DEXT_VERSION_MINOR=$(EXT_VERSION_MINOR) -DEXT_VERSION_PATCHLEVEL=$(EXT_VERSION_PATCHLEVEL)
2424
PG_CXXFLAGS=-fPIC
25-
PG_LDFLAGS=-Wl,--whole-archive $(PROTOBUF_ROOT)/src/.libs/libprotobuf.a -Wl,--no-whole-archive
25+
PG_LDFLAGS=-Wl,--whole-archive $(PROTOBUF_ROOT)/src/.libs/libprotobuf.a -Wl,--no-whole-archive -lz -lstdc++
2626

2727
ifdef DEBUG_PRINT
2828
PG_CPPFLAGS+=-DDEBUG_PRINT

0 commit comments

Comments
 (0)