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

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