From 2b36cab062344d5833aab10699e1125a986d565e Mon Sep 17 00:00:00 2001 From: Lukas Fittl Date: Wed, 17 Mar 2021 21:52:25 -0700 Subject: [PATCH] Avoid dependency on execinfo library --- Makefile | 3 +++ src/postgres/include/pg_config.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index ff97efd9..19770149 100644 --- a/Makefile +++ b/Makefile @@ -122,6 +122,9 @@ extract_source: $(PGDIR) # Avoid problems with static asserts echo "#undef StaticAssertDecl" >> ./src/postgres/include/c.h echo "#define StaticAssertDecl(condition, errmessage)" >> ./src/postgres/include/c.h + # Avoid dependency on execinfo (requires extra library on musl-libc based systems) + echo "#undef HAVE_EXECINFO_H" >> ./src/postgres/include/pg_config.h + echo "#undef HAVE_BACKTRACE_SYMBOLS" >> ./src/postgres/include/pg_config.h # Copy version information so its easily accessible sed -i "" '$(shell echo 's/\#define PG_MAJORVERSION .*/'`grep "\#define PG_MAJORVERSION " ./src/postgres/include/pg_config.h`'/')' pg_query.h sed -i "" '$(shell echo 's/\#define PG_VERSION .*/'`grep "\#define PG_VERSION " ./src/postgres/include/pg_config.h`'/')' pg_query.h diff --git a/src/postgres/include/pg_config.h b/src/postgres/include/pg_config.h index 862651ae..52a0203b 100644 --- a/src/postgres/include/pg_config.h +++ b/src/postgres/include/pg_config.h @@ -984,3 +984,5 @@ #undef WCSTOMBS_L_IN_XLOCALE #undef PG_INT128_TYPE #undef HAVE__STATIC_ASSERT +#undef HAVE_EXECINFO_H +#undef HAVE_BACKTRACE_SYMBOLS