From a660bc0d6fd02b43afafb270db1e08785046a2f3 Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Fri, 28 Apr 2023 09:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8release=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8Cpagehack=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/pagehack/Makefile | 3 +++ contrib/pagehack/pagehack.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/contrib/pagehack/Makefile b/contrib/pagehack/Makefile index 8dd7535210..4c944b7671 100644 --- a/contrib/pagehack/Makefile +++ b/contrib/pagehack/Makefile @@ -7,6 +7,9 @@ OBJS = pagehack.o \ PROGRAM = pagehack all: submake-pagecompression +exclude_option = -fPIC +override CPPFLAGS := $(filter-out $(exclude_option),$(CPPFLAGS)) + ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) diff --git a/contrib/pagehack/pagehack.cpp b/contrib/pagehack/pagehack.cpp index 0ffc38ac82..08b10845e1 100644 --- a/contrib/pagehack/pagehack.cpp +++ b/contrib/pagehack/pagehack.cpp @@ -198,7 +198,11 @@ static int PgIndexRelTupleParserCursor = -1; /* For Assert(...) macros. */ +#ifdef USE_ASSERT_CHECKING THR_LOCAL bool assert_enabled = true; +#else +THR_LOCAL bool assert_enabled = false; +#endif /* Options */ bool only_vm = false; -- Gitee