On 11/29/18 7:50 PM, John Paul Adrian Glaubitz wrote:
Now, I don't know from the top of my head how to fix the cmake file.
Found something from Debian [1]: # Check whether atomic operations require -latomic or not # See https://github.com/facebook/hhvm/issues/5217 INCLUDE(CheckCXXSourceCompiles) set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS}) set(CMAKE_REQUIRED_FLAGS "-std=c++1y") CHECK_CXX_SOURCE_COMPILES(" #include <atomic> int main() { struct Test { int val; }; std::atomic<Test> s; s.is_lock_free(); } " NOT_REQUIRE_ATOMIC_LINKER_FLAG) if(NOT "${NOT_REQUIRE_ATOMIC_LINKER_FLAG}") message(STATUS "-latomic is required to link hhvm") target_link_libraries(hhvm atomic) endif() set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS}) Adrian
[1] https://sources.debian.org/src/hhvm/3.24.7+dfsg-2/hphp/hhvm/CMakeLists.txt/?... -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org