Blob Blame History Raw
We don't build/install interfaces by upstream's implicit rules.

This patch is used on two places; postgresql.spec and libecpg.spec -- keep those
in sync!

Related: rhbz#1618698

diff --git a/src/Makefile b/src/Makefile
index bcdbd95..4bea236 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -20,7 +20,6 @@ SUBDIRS = \
 	backend/utils/mb/conversion_procs \
 	backend/snowball \
 	include \
-	interfaces \
 	backend/replication/libpqwalreceiver \
 	backend/replication/pgoutput \
 	fe_utils \
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 9a4a8a3..2bdfb77 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -513,7 +513,7 @@ endif
 
 # This macro is for use by libraries linking to libpq.  (Because libpgport
 # isn't created with the same link flags as libpq, it can't be used.)
-libpq = -L$(libpq_builddir) -lpq
+libpq = -lpq
 
 # This macro is for use by client executables (not libraries) that use libpq.
 # We force clients to pull symbols from the non-shared libraries libpgport
@@ -539,7 +539,6 @@ endif
 # Commonly used submake targets
 
 submake-libpq: | submake-generated-headers
-	$(MAKE) -C $(libpq_builddir) all
 
 submake-libpgport: | submake-generated-headers
 	$(MAKE) -C $(top_builddir)/src/port all