From 56ddf8e37fc197195d4867d7b968de92c1379747 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Thu, 7 Dec 2023 09:09:11 +0200 Subject: [PATCH] Build Postgres with lz4 support --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ea782cb369..4de2af61b5 100644 --- a/Makefile +++ b/Makefile @@ -23,12 +23,12 @@ endif UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Linux) # Seccomp BPF is only available for Linux - PG_CONFIGURE_OPTS += --with-libseccomp + PG_CONFIGURE_OPTS += --with-lz4 --with-libseccomp else ifeq ($(UNAME_S),Darwin) # macOS with brew-installed openssl requires explicit paths # It can be configured with OPENSSL_PREFIX variable OPENSSL_PREFIX ?= $(shell brew --prefix openssl@3) - PG_CONFIGURE_OPTS += --with-includes=$(OPENSSL_PREFIX)/include --with-libraries=$(OPENSSL_PREFIX)/lib + PG_CONFIGURE_OPTS += --with-lz4 --with-includes=$(OPENSSL_PREFIX)/include --with-libraries=$(OPENSSL_PREFIX)/lib PG_CONFIGURE_OPTS += PKG_CONFIG_PATH=$(shell brew --prefix icu4c)/lib/pkgconfig # macOS already has bison and flex in the system, but they are old and result in postgres-v14 target failure # brew formulae are keg-only and not symlinked into HOMEBREW_PREFIX, force their usage