]> git.sesse.net Git - vlc/commitdiff
contrib: qt4: fix build in 32-bit chroot with 64-bit kernel
authorRafaël Carré <funman@videolan.org>
Fri, 11 Nov 2011 19:52:06 +0000 (14:52 -0500)
committerRafaël Carré <funman@videolan.org>
Fri, 11 Nov 2011 19:52:06 +0000 (14:52 -0500)
contrib/src/qt4/chroot.patch [new file with mode: 0644]
contrib/src/qt4/rules.mak

diff --git a/contrib/src/qt4/chroot.patch b/contrib/src/qt4/chroot.patch
new file mode 100644 (file)
index 0000000..328874c
--- /dev/null
@@ -0,0 +1,13 @@
+Fix build when using a 32-bit chroot with a x86_64 kernel
+Native tools would be built with -m64
+--- qt-everywhere-opensource-src-4.7.4/configure.orig  2011-11-11 14:48:12.944666802 -0500
++++ qt-everywhere-opensource-src-4.7.4/configure       2011-11-11 14:48:55.108875882 -0500
+@@ -168,7 +168,7 @@
+ #-------------------------------------------------------------------------------
+ # need that throughout the script
+-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
++UNAME_MACHINE=`(gcc -dumpmachine|cut -d- -f1) 2>/dev/null` || UNAME_MACHINE=unknown
+ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+ UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
+ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
index c4fb0731c0043d122299fee913db2742a5282435..64ff03853be530243dd6265d18b4ba8531cfb8c9 100644 (file)
@@ -21,6 +21,7 @@ qt4: qt-$(QT4_VERSION).tar.gz .sum-qt4
        $(UNPACK)
        patch -p0 < $(SRC)/qt4/cross.patch
        patch -p0 < $(SRC)/qt4/styles.patch
+       patch -p0 < $(SRC)/qt4/chroot.patch
        patch -p0 < $(SRC)/qt4/imageformats.patch
        mv qt-everywhere-opensource-src-4.7.4 $@ && touch $@