summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDonald Carr <donald.carr@nokia.com>2012-05-31 21:58:32 +0000
committerQt by Nokia <qt-info@nokia.com>2012-06-04 22:29:24 +0200
commitb46d8240ead50791ff391214f922d8036bc50ef7 (patch)
tree0cb20fd1574344e7f8bb348ea594b0dbf20a59a5 /configure
parentbc3cfebc66a046e0c6548624ada9f49701faf0d1 (diff)
Introduce gcc machinedump considerations to build system
This information is required by qmake when cross compiling for Debian based multi-arch devices in order to adequately resolve system libraries and pkg-config information. Change-Id: If96e677ab27c6f0453889c8f7cc43bdb9016f8b6 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index c23c0a719c..17ea5b8591 100755
--- a/configure
+++ b/configure
@@ -2501,6 +2501,12 @@ if [ "$XPLATFORM_SYMBIAN_SBSV2" = "no" ]; then
fi
fi
+GCC_MACHINE_DUMP=
+case "$TEST_COMPILER" in *g++) GCC_MACHINE_DUMP=$($TEST_COMPILER -dumpmachine);; esac
+if [ -n "$GCC_MACHINE_DUMP" ]; then
+ DeviceVar set GCC_MACHINE_DUMP $($TEST_COMPILER -dumpmachine)
+fi
+
if [ -n "$CFG_SYSROOT" ]; then
SYSROOT_FLAG="--sysroot=$CFG_SYSROOT"
else
@@ -3620,6 +3626,9 @@ elif [ -n "$PKG_CONFIG" ]; then
if [ -z "$PKG_CONFIG_LIBDIR" ]; then
if [ -n "$CFG_SYSROOT" ] && [ -d "$CFG_SYSROOT/usr/lib/pkgconfig" ]; then
PKG_CONFIG_LIBDIR=$CFG_SYSROOT/usr/lib/pkgconfig:$CFG_SYSROOT/usr/share/pkgconfig
+ if [ -n "$GCC_MACHINE_DUMP" ]; then
+ PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:$CFG_SYSROOT/usr/lib/$GCC_MACHINE_DUMP/pkgconfig
+ fi
export PKG_CONFIG_LIBDIR
echo >&2 "Note: PKG_CONFIG_LIBDIR automatically set to $PKG_CONFIG_LIBDIR"
elif [ "$CFG_PKGCONFIG" = "yes" ]; then