Skip to content

Commit

Permalink
Avoid dependency on execinfo library
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed Mar 18, 2021
1 parent 232682e commit 2b36cab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/postgres/include/pg_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2b36cab

Please sign in to comment.