summaryrefslogtreecommitdiffstats
path: root/src/gcc.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-02-07 09:00:58 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-02-07 09:00:58 (GMT)
commitfab6f7f5539365614dc222fb894a8af6beb91e51 (patch)
treec3da4a789679472f80804735bcdb58a23a0baf6a /src/gcc.mk
parent17c2153bc550a54a1a0e70eb1fed8115f21b850e (diff)
downloadmxe-fab6f7f5539365614dc222fb894a8af6beb91e51.zip
mxe-fab6f7f5539365614dc222fb894a8af6beb91e51.tar.gz
mxe-fab6f7f5539365614dc222fb894a8af6beb91e51.tar.bz2
use the natively installed pkg-config instead of building a custom pkg-config
Diffstat (limited to 'src/gcc.mk')
-rw-r--r--src/gcc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gcc.mk b/src/gcc.mk
index 77cbd13..882b475 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -77,4 +77,10 @@ define $(PKG)_BUILD
--host='$(TARGET)' \
LIBS='-lws2_32'
$(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '$(JOBS)' install
+
+ # create pkg-config script
+ (echo '#!/bin/sh'; \
+ echo 'PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR='\''$(PREFIX)/$(TARGET)/lib/pkgconfig'\'' exec pkg-config "$$@"') \
+ > '$(PREFIX)/bin/$(TARGET)-pkg-config'
+ chmod 0755 '$(PREFIX)/bin/$(TARGET)-pkg-config'
endef