Skip to content

Commit

Permalink
libcereal: Link in libatomic on rv32 for ptests
Browse files Browse the repository at this point in the history
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Apr 10, 2022
1 parent a3dab74 commit 668ed5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ S = "${WORKDIR}/git"
inherit cmake pkgconfig ptest

LIBATOMIC:mips:toolchain-clang = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"
LIBATOMIC:riscv32:toolchain-clang = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DCEREAL_THREAD_LIBS="-latomic"', '', d)}"

PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)}"
PACKAGECONFIG[with-tests] = "-DWITH_WERROR=OFF -DBUILD_TESTS=ON ${LIBATOMIC},,"
Expand Down

0 comments on commit 668ed5c

Please sign in to comment.