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