Commit 0ee6db63 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Fixing builds with GCC4.1 on 32bit linux.

On the 32bit VMs, QT_POINTER_SIZE is sometimes incorrectly being set as 8.
Overcoming the issue by hardcoding it to 4 for 32-bit linux builds.

Change-Id: Id235e7439cd9fc735957c167acc9390331d453c4
parent 682a7eee
This diff is collapsed.
......@@ -56,3 +56,15 @@ add_external_project_or_use_system(
${qt_EXTRA_CONFIGURATION_OPTIONS}
${patch_command}
)
if ((NOT 64bit_build) AND UNIX AND (NOT APPLE))
# on 32-bit builds, we are incorrectly ending with QT_POINTER_SIZE chosen as
# 8 (instead of 4) with GCC4.1 toolchain on old debians. This patch overcomes
# that.
add_external_project_step(qt-patch-configure
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${SuperBuild_PROJECTS_DIR}/patches/qt.configure
<SOURCE_DIR>/configure
DEPENDEES patch
DEPENDERS configure)
endif()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment