• Daniel Black's avatar
    MDEV-30554 RockDB libatomic linking on riscv64 · 17423c6c
    Daniel Black authored
    The existing storage/rocksdb/CMakeCache.txt defined
    ATOMIC_EXTRA_LIBS when atomics where required. This was
    determined by the toplevel configure.cmake test
    (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC).
    
    As build_rocksdb.cmake is included after ATOMIC_EXTRA_LIBS
    was set, we just need to use it. As such no riscv64
    specific macro is needed in build_rocksdb.cmake.
    
    As highlighted by Gianfranco Costamagna (@LocutusOfBorg)
    in #2472 overwriting SYSTEM_LIBS was problematic.
    This is corrected in case in future SYSTEM_LIBS is changed
    elsewhere.
    
    Closes #2472.
    17423c6c
build_rocksdb.cmake 17.4 KB