mirror of https://git.wownero.com/dsc/mxe.git
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.
This commit is contained in:
parent
ede738758e
commit
b72e1a3f85
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue