mirror of
https://github.com/debezium/postgres-decoderbufs.git
synced 2026-02-04 06:56:22 +00:00
DBZ-445 Made postGIS support optional.
This commit is contained in:
committed by
Gunnar Morling
parent
d08a75593c
commit
6c1723a179
9
Makefile
9
Makefile
@@ -4,8 +4,13 @@ EXTENSION = decoderbufs
|
||||
PROTOBUF_C_CFLAGS = $(shell pkg-config --cflags 'libprotobuf-c >= 1.0.0')
|
||||
PROTOBUF_C_LDFLAGS = $(shell pkg-config --libs 'libprotobuf-c >= 1.0.0')
|
||||
|
||||
PG_CPPFLAGS += -std=c11 $(PROTOBUF_C_CFLAGS) -I/usr/local/include
|
||||
SHLIB_LINK += $(PROTOBUF_C_LDFLAGS) -L/usr/local/lib -llwgeom
|
||||
ifneq ($(USE_POSTGIS),false)
|
||||
C_PARAMS = -DUSE_POSTGIS
|
||||
POSTGIS_C_LDFLAGS = -L/usr/local/lib -llwgeom
|
||||
endif
|
||||
|
||||
PG_CPPFLAGS += -std=c11 $(PROTOBUF_C_CFLAGS) -I/usr/local/include $(C_PARAMS)
|
||||
SHLIB_LINK += $(PROTOBUF_C_LDFLAGS) $(POSTGIS_C_LDFLAGS)
|
||||
|
||||
OBJS = src/decoderbufs.o src/proto/pg_logicaldec.pb-c.o
|
||||
|
||||
|
||||
Reference in New Issue
Block a user