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)