summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase.inc')
-rw-r--r--recipes-qt/qt5/qtbase.inc24
1 files changed, 20 insertions, 4 deletions
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc
index 0a8b7397..531c88fe 100644
--- a/recipes-qt/qt5/qtbase.inc
+++ b/recipes-qt/qt5/qtbase.inc
@@ -49,12 +49,28 @@ EXTRA_ENV = 'QMAKE="bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} -after \
49# qtbase is exception, we need to use mkspecs from ${S} 49# qtbase is exception, we need to use mkspecs from ${S}
50QMAKE_MKSPEC_PATH = "${B}" 50QMAKE_MKSPEC_PATH = "${B}"
51 51
52do_configure_append() { 52# another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location
53OE_QMAKE_QMAKE_ORIG := "${OE_QMAKE_QMAKE}"
54OE_QMAKE_QMAKE = "bin/qmake"
55
56do_configure() {
57 set_arch
58 set_endian
59
60 # Avoid problems with the linkers, since we want the linker to be g++
61 unset LD
62
63 # Similar logic is in autotools.bbclass
64 if [ -d ${B} -a "${S}" != "${B}" ] ; then
65 # Existing separate build directory, exists, remove
66 rm -rf "${B}/*"
67 fi
68
53 # we need symlink in path relative to source, because 69 # we need symlink in path relative to source, because
54 # EffectivePaths:Prefix is relative to qmake location 70 # EffectivePaths:Prefix is relative to qmake location
55 if [ ! -e ${B}/bin/qmake ]; then 71 if [ ! -e ${B}/bin/qmake ]; then
56 mkdir ${B}/bin 72 mkdir ${B}/bin
57 ln -sf ${OE_QMAKE_QMAKE} ${B}/bin/qmake 73 ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake
58 fi 74 fi
59 75
60 ${S}/configure -v \ 76 ${S}/configure -v \
@@ -83,8 +99,8 @@ do_configure_append() {
83 -platform ${OE_QMAKESPEC} \ 99 -platform ${OE_QMAKESPEC} \
84 -xplatform linux-oe-g++ \ 100 -xplatform linux-oe-g++ \
85 ${QT_CONFIG_FLAGS} 101 ${QT_CONFIG_FLAGS}
86 102
87 bin/qmake -r ${OE_QMAKE_DEBUG_OUTPUT} ${S} 103 qmake5_base_do_configure
88} 104}
89 105
90do_compile_append() { 106do_compile_append() {