From c8ae9bf58df8593bd8ecb902e2167768457e5484 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Date: Mon, 21 Dec 2015 18:13:23 +0100 Subject: [PATCH] write [Paths] to qt.conf only if -external-hostbindir is used there is no point in overriding the built-in defaults with the same values. Change-Id: I24f66b86f751f7044625b5256f3d979ece782cf7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com> --- configure | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure b/configure index bc44ec0d71f..67ac5a144fc 100755 --- a/configure +++ b/configure @@ -4185,15 +4185,19 @@ QTCONFFILE="$outpath/bin/qt.conf" cat > "$QTCONFFILE" <<EOF [EffectivePaths] Prefix=.. +EOF +if [ -n "$CFG_HOST_QT_TOOLS_PATH" ]; then + cat >> "$QTCONFFILE" <<EOF [Paths] Prefix=$QT_EXT_PREFIX TargetSpec=$XPLATFORM HostSpec=$PLATFORM EOF -if [ -n "$CFG_SYSROOT" ]; then - cat >> "$QTCONFFILE" <<EOF + if [ -n "$CFG_SYSROOT" ]; then + cat >> "$QTCONFFILE" <<EOF Sysroot=$CFG_SYSROOT EOF + fi fi if [ x"$relpath" != x"$outpath" ]; then cat >> "$QTCONFFILE" <<EOF -- GitLab