From c7d5071afc6c76925c90ff35041dc4eb86511271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Wed, 5 Sep 2012 10:47:35 +0200 Subject: Disable rpath, pkg-config, "reduce export" flag when x-compiling for mingw This patch disables rpath and pkg-config because both are not supported by Windows. The reduce export flag produces linker errors when Dlls are used. Partial cherry pick from qtbase/07a978d3d4b41739eff1061dc45dbfa737bf78b9 Change-Id: Iee679373397a2f97780876471a138c7bcddd2c7b Reviewed-by: Oswald Buddenhagen --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index cffbc09..d19f443 100755 --- a/configure +++ b/configure @@ -1681,7 +1681,13 @@ while [ "$#" -gt 0 ]; do ;; xplatform) XPLATFORM="$VAL" - case `basename "$XPLATFORM"` in win32-g++*) XPLATFORM_MINGW=yes;; esac + case `basename "$XPLATFORM"` in win32-g++*) + XPLATFORM_MINGW=yes + CFG_RPATH=no + PKG_CONFIG=no + CFG_REDUCE_EXPORTS=no + ;; + esac case "$XPLATFORM" in *integrity*) XPLATFORM_INTEGRITY=yes;; esac case "$XPLATFORM" in *symbian*) XPLATFORM_SYMBIAN=yes;; esac case "$XPLATFORM" in symbian-sbsv2) XPLATFORM_SYMBIAN_SBSV2=yes;; esac -- cgit v0.12