Commit 1388845e authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Fix Groonga crash on MIPS: Correctly link to libatomic

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>
parent a33c1082
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment