Skip to content

Commit

Permalink
Explicitly link against libpgcommon and libpgport
Browse files Browse the repository at this point in the history
libpq_pgport used to pull these in, but does no longer in PG17.
  • Loading branch information
df7cb committed Jun 7, 2024
1 parent 40dcfd1 commit 61b1db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ PATH += :$(srcdir):$(shell $(PG_CONFIG) --bindir)

# avoid linking against all libs that the server links against (xml, selinux, ...)
ifneq ($(findstring -llz4,$(LIBS)),)
LIBS = $(libpq_pgport) -llz4
LIBS = -L$(pkglibdir) -lpgcommon -lpgport -llz4
else
LIBS = $(libpq_pgport)
LIBS = -L$(pkglibdir) -lpgcommon -lpgport
endif

DISTFILES= README.pg_filedump.md Makefile \
Expand Down

0 comments on commit 61b1db0

Please sign in to comment.