Make Qt less smart about cross-toolchain detection and pkgconfig
[feed/video.git] / frameworks / qt5base / patches / 001-fix-pkgconfig-xcompile-detection.patch
index 680f289640ebd82eee166ba204061efc9a566938..075ab3fc87e29c903043bf8e317610ea021b89b8 100644 (file)
@@ -9,3 +9,14 @@
              }
  
              pkgConfigSysrootDir = $$sysroot
+--- qtbase-opensource-src-5.8.0-rc/mkspecs/features/qt_functions.prf.orig      2017-01-19 17:52:11.741970700 +0100
++++ qtbase-opensource-src-5.8.0-rc/mkspecs/features/qt_functions.prf   2017-01-19 17:52:06.641997235 +0100
+@@ -272,7 +272,7 @@
+                         warning("Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.")
+                         warning("Set this variable to your sysroot for pkg-config to function")
+                         warning("correctly when cross-compiling.")
+-                        return()
++#                        return()
+                     }
+                     pkgConfigSysrootDir = $$sysroot