Commit 8a7a9329 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

Merge branch 'sb_low_kernel_version' into 'develop'

COMP: allow Qt5 to compile on old kernels

See merge request !391
parents fba7da66 336b3534
......@@ -102,6 +102,7 @@ if(UNIX)
--with-webp=no
--with-threads=yes
--with-freexl=no
--with-libjson-c=internal
${GDAL_SB_CONFIG}
${GDAL_SB_EXTRA_OPTIONS}
)
......
......@@ -106,6 +106,10 @@ elseif(MSVC)
set(QT5_SB_CONFIG "${QT5_SB_CONFIG} -mp")
endif()
if(UNIX AND USE_LOW_KERNEL_VERSION)
set(QT5_SB_CONFIG "${QT5_SB_CONFIG} -no-feature-getentropy -no-feature-renameat2")
endif()
if(WIN32)
set(QT5_BIN_EXT ".exe")
file(TO_NATIVE_PATH ${QT5_SB_SRC}/configure.bat QT5_CONFIGURE_SCRIPT)
......
......@@ -117,6 +117,13 @@ set(SUPERBUILD_OTB_VERSION "${SUPERBUILD_OTB_VERSION_MAJOR}.${SUPERBUILD_OTB_VER
message("OTB version : ${SUPERBUILD_OTB_VERSION}")
# Special setting for low kernel versions
if(UNIX)
option(USE_LOW_KERNEL_VERSION "Try to keep the minimal kernel version as low as possible" ON)
endif()
# Default install prefix
get_filename_component(PARENT_OF_BINARY_DIR ${CMAKE_BINARY_DIR} PATH)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT USE_DEFAULT_INSTALL_PREFIX)
set (CMAKE_INSTALL_PREFIX
......
Supports Markdown
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