Skip to content

Commit

Permalink
Fix Groonga crash on MIPS: Correctly link to libatomic
Browse files Browse the repository at this point in the history
MIPS (and possibly other) platforms require linking against libatomic to
support 64-bit atomic integers. Groonga was failing to do so and all related
tests were failing with an atomics relocation error on MIPS.

Contributors:
James Cowgill <jcowgill@debian.org>
  • Loading branch information
cvicentiu committed Oct 19, 2021
1 parent a33c108 commit 1388845
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions storage/mroonga/vendor/groonga/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ else()
endif()
set_target_properties(libgroonga PROPERTIES OUTPUT_NAME "groonga")

if (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC)
set(ATOMIC_LIBS atomic)
endif()

set(GRN_ALL_LIBRARIES
${ATOMIC_LIBS}
${EXECINFO_LIBS}
${RT_LIBS}
${PTHREAD_LIBS}
Expand Down

0 comments on commit 1388845

Please sign in to comment.