projects/aports·blob master · refs

38 lines · 1.3 KiB

1Patch-Source: https://src.fedoraproject.org/rpms/postgresql/blob/f35/f/postgresql-external-libpq.patch
2
3This patch is applied only when building non-default postgresql aport, i.e.
4we want to link against libpq provided by the default postgresql aport.
5
6diff --git a/src/Makefile b/src/Makefile
7index bcdbd95..4bea236 100644
8--- a/src/Makefile
9+++ b/src/Makefile
10@@ -20,7 +20,6 @@ SUBDIRS = \
11 backend/utils/mb/conversion_procs \
12 backend/snowball \
13 include \
14- interfaces \
15 backend/replication/libpqwalreceiver \
16 backend/replication/pgoutput \
17 fe_utils \
18diff --git a/src/Makefile.global.in b/src/Makefile.global.in
19index be4cd7b..d72c397 100644
20--- a/src/Makefile.global.in
21+++ b/src/Makefile.global.in
22@@ -603,7 +603,7 @@ endif
23 # How to link to libpq. (This macro may be used as-is by backend extensions.
24 # Client-side code should go through libpq_pgport or libpq_pgport_shlib,
25 # instead.)
26-libpq = -L$(libpq_builddir) -lpq
27+libpq = -lpq
28
29 # libpq_pgport is for use by client executables (not libraries) that use libpq.
30 # We used to use this to force libpgport and libpgcommon to be linked before
31@@ -641,7 +641,6 @@ endif
32 # Commonly used submake targets
33
34 submake-libpq: | submake-generated-headers
35- $(MAKE) -C $(libpq_builddir) all
36
37 submake-libpgport: | submake-generated-headers
38 $(MAKE) -C $(top_builddir)/src/port all