Explicitly link against libpgcommon and libpgport
authorChristoph Berg <[email protected]>
Fri, 7 Jun 2024 11:52:41 +0000 (13:52 +0200)
committerChristoph Berg <[email protected]>
Fri, 7 Jun 2024 11:52:41 +0000 (13:52 +0200)
libpq_pgport used to pull these in, but does no longer in PG17.

Makefile

index d703df5448bd1e9e2323954d761707cb135a265d..3300cc8387a89b2edfb2c812c68dffa8ecce9101 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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 \