!3401 pagehack适配release方式编译

Merge pull request !3401 from zhangxubo/master
This commit is contained in:
opengauss-bot
2023-05-24 01:13:06 +00:00
committed by Gitee
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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;