Skip to content

Commit 4ef1be5

Browse files
committed
pkg-config Requires.private entries should be comma-separated
In the .pc (pkg-config) files generated by the make and meson builds, the Requires.private entries use different delimiters. The make build uses spaces, the meson build uses commas. The pkg-config documentation says that it should be comma-separated, but apparently about half the .pc in the wild use just spaces. The pkg-config source code acknowledges that both commas and spaces work. This changes the make build to use commas, for consistency. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/1fb52d61-0964-2d8e-87d9-e8be830e2b24%40enterprisedb.com
1 parent e731aea commit 4ef1be5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/interfaces/ecpg/compatlib/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ OBJS = \
3232
$(WIN32RES) \
3333
informix.o
3434

35-
PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes
35+
PKG_CONFIG_REQUIRES_PRIVATE = libecpg, libpgtypes
3636

3737
all: all-lib
3838

src/interfaces/ecpg/ecpglib/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SHLIB_PREREQS = submake-libpq submake-pgtypeslib
4141

4242
SHLIB_EXPORTS = exports.txt
4343

44-
PKG_CONFIG_REQUIRES_PRIVATE = libpq libpgtypes
44+
PKG_CONFIG_REQUIRES_PRIVATE = libpq, libpgtypes
4545

4646
all: all-lib
4747

src/interfaces/libpq/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ SHLIB_PREREQS = submake-libpgport
9696
SHLIB_EXPORTS = exports.txt
9797

9898
ifeq ($(with_ssl),openssl)
99-
PKG_CONFIG_REQUIRES_PRIVATE = libssl libcrypto
99+
PKG_CONFIG_REQUIRES_PRIVATE = libssl, libcrypto
100100
endif
101101

102102
all: all-lib libpq-refs-stamp

0 commit comments

Comments
 (0)