From 7a8ae4b0e34fea708eabc5ce0637ce79eb915d44 Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Wed, 10 Aug 2022 11:42:01 +0800 Subject: [PATCH] fix pg_trgm compile error --- contrib/pg_trgm/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile index 64fd69f2c..0fc665ecc 100644 --- a/contrib/pg_trgm/Makefile +++ b/contrib/pg_trgm/Makefile @@ -8,6 +8,9 @@ DATA = pg_trgm--1.0.sql pg_trgm--unpackaged--1.0.sql REGRESS = pg_trgm +exclude_option = -fPIE +override CPPFLAGS := $(filter-out $(exclude_option),$(CPPFLAGS)) + ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs)