diff options
author | Mark Brand <mabrand@mabrand.nl> | 2010-10-10 09:19:42 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2010-10-10 09:19:42 (GMT) |
commit | 77fbebd52359d2bc6410738da522cd5b408fdd45 (patch) | |
tree | cb9e4ca4c7c89d25e9e521ab9dbba39f5fecfe5f /src/qt-1-win32.patch | |
parent | e1f24fd60afb73ca73759348e6d337c318902a5b (diff) | |
download | mxe-77fbebd52359d2bc6410738da522cd5b408fdd45.zip mxe-77fbebd52359d2bc6410738da522cd5b408fdd45.tar.gz mxe-77fbebd52359d2bc6410738da522cd5b408fdd45.tar.bz2 |
package qt: fix for cross pkg-config
Diffstat (limited to 'src/qt-1-win32.patch')
-rw-r--r-- | src/qt-1-win32.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/qt-1-win32.patch b/src/qt-1-win32.patch index a78404a..0272522 100644 --- a/src/qt-1-win32.patch +++ b/src/qt-1-win32.patch @@ -1768,3 +1768,28 @@ index 3f1ac86..602cb8d 100644 contains(QT_CONFIG, embedded):CONFIG += embedded CONFIG(QTDIR_build) { + +commit f9b9cf2a816380f70e41155344a769c2ad71ad28 +Author: Mark Brand <mabrand@mabrand.nl> +Date: Sun Oct 10 11:14:20 2010 +0200 + + use specified pkg-config + + Respect the pkg-config tool specified in qmake.conf. This is + useful when crossbuilding. + +diff --git a/mkspecs/features/link_pkgconfig.prf b/mkspecs/features/link_pkgconfig.prf +index 4c528aa..90cc836 100644 +--- a/mkspecs/features/link_pkgconfig.prf ++++ b/mkspecs/features/link_pkgconfig.prf +@@ -1,6 +1,7 @@ + # handle pkg-config files ++isEmpty(PKG_CONFIG):PKG_CONFIG=pkg-config + for(PKGCONFIG_LIB, $$list($$unique(PKGCONFIG))) { +- QMAKE_CXXFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB) +- QMAKE_CFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB) +- LIBS += $$system(pkg-config --libs $$PKGCONFIG_LIB) ++ QMAKE_CXXFLAGS += $$system($$PKG_CONFIG --cflags $$PKGCONFIG_LIB) ++ QMAKE_CFLAGS += $$system($$PKG_CONFIG --cflags $$PKGCONFIG_LIB) ++ LIBS += $$system($$PKG_CONFIG --libs $$PKGCONFIG_LIB) + } |