You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
disable pch when building boost with gcc 8.x
according to https://bugzilla.redhat.com/show_bug.cgi?id=1806545 GCC's PCH mechanism is fundamentally incompatible with the security hardening requirements for RHEL (PIE in particular). We are currently evaluating the best way to present a more friendly diagnostic for this issue. and also we don't turn on hardening the compiler and its binaries in DTS 9.
This commit is contained in:
committed by
Gagan Goel
parent
3bd0ef4e43
commit
e66a937c7c
@ -7,6 +7,9 @@ include(ExternalProject)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
set(_toolset "gcc")
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0")
|
||||
set(_extra "pch=off")
|
||||
endif()
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
|
||||
set(_toolset "clang")
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
|
||||
@ -19,7 +22,7 @@ SET(Boost_LIBRARY_DIRS "${INSTALL_LOCATION}/lib")
|
||||
LINK_DIRECTORIES("${Boost_LIBRARY_DIRS}")
|
||||
|
||||
set(_cxxargs "-fPIC -DBOOST_NO_AUTO_PTR -fvisibility=default")
|
||||
set(_b2args cxxflags=${_cxxargs};cflags=-fPIC;threading=multi; toolset=${_toolset} --without-python;--prefix=${INSTALL_LOCATION})
|
||||
set(_b2args cxxflags=${_cxxargs};cflags=-fPIC;threading=multi;${_extra};toolset=${_toolset} --without-python;--prefix=${INSTALL_LOCATION})
|
||||
|
||||
SET(byproducts)
|
||||
FOREACH(name chrono filesystem program_options regex system thread)
|
||||
|
Reference in New Issue
Block a user