summaryrefslogtreecommitdiffstats
path: root/src/gcc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/gcc.mk')
-rw-r--r--src/gcc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gcc.mk b/src/gcc.mk
index ea5f2dd..1d11a86 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -58,7 +58,7 @@ define $(PKG)_BUILD
# create pkg-config script
(echo '#!/bin/sh'; \
- echo 'PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR='\''$(PREFIX)/$(TARGET)/lib/pkgconfig'\'' exec pkg-config --static "$$@"') \
+ echo 'PKG_CONFIG_PATH="$$PKG_CONFIG_PATH_$(subst -,_,$(TARGET))" PKG_CONFIG_LIBDIR='\''$(PREFIX)/$(TARGET)/lib/pkgconfig'\'' exec pkg-config --static "$$@"') \
> '$(PREFIX)/bin/$(TARGET)-pkg-config'
chmod 0755 '$(PREFIX)/bin/$(TARGET)-pkg-config'
endef