summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2017-06-16 09:42:54 (GMT)
committerMark Brand <mabrand@mabrand.nl>2017-06-16 10:54:27 (GMT)
commitb72e1a3f85cc4be6732bbce0c9092ef6b887cbf1 (patch)
treed405abdf0de5f744a5f857846d1d7a5c68893946
parentede738758e34fca6bff735e472d63e5e06024654 (diff)
downloadmxe-b72e1a3f85cc4be6732bbce0c9092ef6b887cbf1.zip
mxe-b72e1a3f85cc4be6732bbce0c9092ef6b887cbf1.tar.gz
mxe-b72e1a3f85cc4be6732bbce0c9092ef6b887cbf1.tar.bz2
Avoid extra mentions of system library path when linking
Normally pkg-config would remove the system library path from --libs output. Defining PKG_CONFIG_SYSTEM_LIBRARY_PATH helps it do so. The extra mentions of system library path in the linking commands is unsightly but probabaly harmless.
-rw-r--r--src/pkgconf.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkgconf.mk b/src/pkgconf.mk
index 14a67bd..5b46267 100644
--- a/src/pkgconf.mk
+++ b/src/pkgconf.mk
@@ -25,6 +25,7 @@ define $(PKG)_BUILD
PKG_CONFIG_SYSROOT_DIR= \
PKG_CONFIG_LIBDIR="$(PREFIX)/$(TARGET)/lib/pkgconfig" \
PKG_CONFIG_SYSTEM_INCLUDE_PATH="$(PREFIX)/$(TARGET)/include" \
+ PKG_CONFIG_SYSTEM_LIBRARY_PATH="$(PREFIX)/$(TARGET)/lib" \
exec "$(PREFIX)/$(BUILD)/bin/pkgconf" $(if $(BUILD_STATIC),--static) "$$@"') \
> '$(PREFIX)/bin/$(TARGET)-pkg-config'
chmod 0755 '$(PREFIX)/bin/$(TARGET)-pkg-config'