Mercurial > mxe-octave
diff src/gcc.mk @ 695:b930f92b1f77
use the natively installed pkg-config instead of building a custom pkg-config
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 07 Feb 2010 10:00:58 +0100 |
parents | 584fdc59e1e3 |
children | e3e2690dee30 |
line wrap: on
line diff
--- a/src/gcc.mk Sun Feb 07 07:49:56 2010 +0100 +++ b/src/gcc.mk Sun Feb 07 10:00:58 2010 +0100 @@ -77,4 +77,10 @@ --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