Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 1 | diff -urN -x .git orig/CMakeLists.txt patched/CMakeLists.txt |
| 2 | --- orig/CMakeLists.txt 2020-08-07 21:58:34.656773928 +0900 |
| 3 | +++ patched/CMakeLists.txt 2020-08-10 15:08:31.800278357 +0900 |
| 4 | @@ -119,13 +119,28 @@ |
| 5 | endif() |
| 6 | endif() |
| 7 | |
| 8 | +include(CheckCXXSourceCompiles) |
| 9 | +CHECK_CXX_SOURCE_COMPILES(" |
| 10 | + #include <atomic> |
| 11 | + int main(int argc, char **argv) { |
| 12 | + uint8_t m; |
| 13 | + __atomic_load_8(&m, 0); |
| 14 | + __atomic_fetch_add_1(&m , 0, 0); |
| 15 | + return 0; |
| 16 | + }" |
| 17 | + HAVE_ATOMIC |
| 18 | +) |
| 19 | +if(NOT HAVE_ATOMIC) |
| 20 | + set(LIB_ATOMIC atomic) |
| 21 | +endif() |
| 22 | + |
| 23 | # Use ccache if present |
| 24 | -find_program(CCACHE_FOUND ccache) |
| 25 | -if(CCACHE_FOUND) |
| 26 | - set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) |
| 27 | - set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) |
| 28 | - message("-- Found ccache: ${CCACHE_FOUND}") |
| 29 | -endif(CCACHE_FOUND) |
| 30 | +#find_program(CCACHE_FOUND ccache) |
| 31 | +#if(CCACHE_FOUND) |
| 32 | +# set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) |
| 33 | +# set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) |
| 34 | +# message("-- Found ccache: ${CCACHE_FOUND}") |
| 35 | +#endif(CCACHE_FOUND) |
| 36 | |
| 37 | if (UNIX AND USE_GOLD_LINKER AND NOT APPLE ) |
| 38 | execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE ld_version) |
| 39 | @@ -303,8 +318,10 @@ |
| 40 | GIT_TAG "f3294d9d86e6a7915a967efff2842089b8b0d071" # Version 7.64.0 |
| 41 | SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/thirdparty/curl-src" |
| 42 | LIST_SEPARATOR % # This is needed for passing semicolon-separated lists |
| 43 | + TLS_VERIFY OFF |
| 44 | CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS} |
| 45 | "-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/thirdparty/curl-install" |
| 46 | + "-DCMAKE_INSTALL_LIBDIR=lib${LIBSUFFIX}" |
| 47 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON |
| 48 | -DBUILD_CURL_EXE=OFF |
| 49 | -DBUILD_TESTING=OFF |
| 50 | diff -urN -x .git orig/libminifi/CMakeLists.txt patched/libminifi/CMakeLists.txt |
| 51 | --- orig/libminifi/CMakeLists.txt 2020-08-07 21:58:34.676773928 +0900 |
| 52 | +++ patched/libminifi/CMakeLists.txt 2020-08-10 15:06:17.124278642 +0900 |
| 53 | @@ -108,6 +108,7 @@ |
| 54 | add_library(spdlog STATIC ${SPD_SOURCES}) |
| 55 | add_library(core-minifi STATIC ${SOURCES}) |
| 56 | target_link_libraries(core-minifi ${CMAKE_DL_LIBS} yaml-cpp) |
| 57 | +target_link_libraries(core-minifi ${LIB_ATOMIC}) |
| 58 | |
| 59 | #target_link_libraries(core-minifi PRIVATE bsdiff ) |
| 60 | |