682ed4
We don't build/install interfaces by upstream's implicit rules.
682ed4
682ed4
This patch is used on two places; postgresql.spec and libecpg.spec -- keep those
682ed4
in sync!
682ed4
682ed4
Related: rhbz#1618698
682ed4
682ed4
diff --git a/src/Makefile b/src/Makefile
682ed4
index bcdbd95..4bea236 100644
682ed4
--- a/src/Makefile
682ed4
+++ b/src/Makefile
682ed4
@@ -20,7 +20,6 @@ SUBDIRS = \
682ed4
 	backend/utils/mb/conversion_procs \
682ed4
 	backend/snowball \
682ed4
 	include \
682ed4
-	interfaces \
682ed4
 	backend/replication/libpqwalreceiver \
682ed4
 	backend/replication/pgoutput \
682ed4
 	fe_utils \
682ed4
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
682ed4
index b9d86ac..29df69f 100644
682ed4
--- a/src/Makefile.global.in
682ed4
+++ b/src/Makefile.global.in
682ed4
@@ -549,7 +549,7 @@ endif
682ed4
 # How to link to libpq.  (This macro may be used as-is by backend extensions.
682ed4
 # Client-side code should go through libpq_pgport or libpq_pgport_shlib,
682ed4
 # instead.)
682ed4
-libpq = -L$(libpq_builddir) -lpq
682ed4
+libpq = -lpq
682ed4
 
682ed4
 # libpq_pgport is for use by client executables (not libraries) that use libpq.
682ed4
 # We force clients to pull symbols from the non-shared libraries libpgport
682ed4
@@ -579,7 +579,6 @@ endif
682ed4
 # Commonly used submake targets
682ed4
 
682ed4
 submake-libpq: | submake-generated-headers
682ed4
-	$(MAKE) -C $(libpq_builddir) all
682ed4
 
682ed4
 submake-libpgport: | submake-generated-headers
682ed4
 	$(MAKE) -C $(top_builddir)/src/port all
682ed4
-- 
682ed4
2.21.0
682ed4