Blame SOURCES/libecpg-12.2-external-libpq.patch

68f0bf
We don't build/install interfaces by upstream's implicit rules.
68f0bf
This patch is used on two places; postgresql.spec and libecpg.spec -- keep those
68f0bf
in sync!
68f0bf
Related: rhbz#1618698
68f0bf
diff -ur postgresql-12.2/src/Makefile postgresql-12.2_patch/src/Makefile
68f0bf
--- postgresql-12.2/src/Makefile	2020-02-10 23:14:51.000000000 +0100
68f0bf
+++ postgresql-12.2_patch/src/Makefile	2020-03-02 12:49:45.530666894 +0100
68f0bf
@@ -20,7 +20,6 @@
68f0bf
 	backend/utils/mb/conversion_procs \
68f0bf
 	backend/snowball \
68f0bf
 	include \
68f0bf
-	interfaces \
68f0bf
 	backend/replication/libpqwalreceiver \
68f0bf
 	backend/replication/pgoutput \
68f0bf
 	fe_utils \
68f0bf
diff -ur postgresql-12.2/src/Makefile.global.in postgresql-12.2_patch/src/Makefile.global.in
68f0bf
--- postgresql-12.2/src/Makefile.global.in	2020-02-10 23:14:51.000000000 +0100
68f0bf
+++ postgresql-12.2_patch/src/Makefile.global.in	2020-03-02 12:47:40.970583609 +0100
68f0bf
@@ -550,7 +550,7 @@
68f0bf
 # How to link to libpq.  (This macro may be used as-is by backend extensions.
68f0bf
 # Client-side code should go through libpq_pgport or libpq_pgport_shlib,
68f0bf
 # instead.)
68f0bf
-libpq = -L$(libpq_builddir) -lpq
68f0bf
+libpq = -lpq
68f0bf
 
68f0bf
 # libpq_pgport is for use by client executables (not libraries) that use libpq.
68f0bf
 # We force clients to pull symbols from the non-shared libraries libpgport
68f0bf
@@ -580,7 +580,6 @@
68f0bf
 # Commonly used submake targets
68f0bf
 
68f0bf
 submake-libpq: | submake-generated-headers
68f0bf
-	$(MAKE) -C $(libpq_builddir) all
68f0bf
 
68f0bf
 submake-libpgport: | submake-generated-headers
68f0bf
 	$(MAKE) -C $(top_builddir)/src/port all