Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | PUBLIC | ||||
. | . | ||||
# To access the config/ and obj/ directories | # To access the config/ and obj/ directories | ||||
${CMAKE_CURRENT_BINARY_DIR} | ${CMAKE_CURRENT_BINARY_DIR} | ||||
) | ) | ||||
if(ENABLE_GLIBC_BACK_COMPAT) | if(ENABLE_GLIBC_BACK_COMPAT) | ||||
# glibc absorbed clock_gettime in 2.17. librt (its previous location) is | # glibc absorbed clock_gettime in 2.17. librt (its previous location) is | ||||
# safe to link in anyway for back-compat. | # safe to link in anyway for back-compat. | ||||
find_library(RT_LIBRARY rt) | find_library(RT_LIBRARY rt CMAKE_FIND_ROOT_PATH_BOTH) | ||||
target_link_libraries(util ${RT_LIBRARY}) | target_link_libraries(util ${RT_LIBRARY}) | ||||
#__fdelt_chk's params and return type have changed from long unsigned int to | #__fdelt_chk's params and return type have changed from long unsigned int to | ||||
# long int. See which one is present here. | # long int. See which one is present here. | ||||
include(CheckPrototypeDefinition) | include(CheckPrototypeDefinition) | ||||
set(CMAKE_REQUIRED_DEFINITIONS -D_FORTIFY_SOURCE=2) | set(CMAKE_REQUIRED_DEFINITIONS -D_FORTIFY_SOURCE=2) | ||||
# Without some optimization the compiler won't detect the prototype conflict | # Without some optimization the compiler won't detect the prototype conflict | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |