Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8256831: MIPS Zero builds fail with undefined __atomic_compare_exchan…
…ge_8

Reviewed-by: ihse
  • Loading branch information
shipilev committed Nov 26, 2020
1 parent 734d3c3 commit 1b3aa3afc5b9d57c541ee48377a46a5b59020056
Showing with 8 additions and 0 deletions.
  1. +8 −0 make/autoconf/libraries.m4
@@ -124,6 +124,14 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lpthread"
fi
# Libatomic library
# 32-bit MIPS needs fallback library for 8-byte atomic ops
if test "x$OPENJDK_TARGET_OS" = xlinux &&
(test "x$OPENJDK_TARGET_CPU" = xmips ||
test "x$OPENJDK_TARGET_CPU" = xmipsel); then
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
fi
# perfstat lib
if test "x$OPENJDK_TARGET_OS" = xaix; then
BASIC_JVM_LIBS="$BASIC_JVM_LIBS -lperfstat"

0 comments on commit 1b3aa3a

Please sign in to comment.