Blame libecpg-12.2-external-libpq.patch

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