From 004870755d64b4c6c931fefa71b6de80c10c14e1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 1 Jan 2023 20:52:54 -0800 Subject: compiler-rt-sanitizers: Enable -D_LARGEFILE64_SOURCE on musl Ideally, the LFS64 functions should be replaced in sanitizers sources but for now just enable the aliases in musl Signed-off-by: Khem Raj --- recipes-devtools/clang/compiler-rt-sanitizers_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb index bdf8fe3..9d8dde2 100644 --- a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb +++ b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb @@ -27,6 +27,8 @@ HF = "" HF:class-target = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" HF[vardepvalue] = "${HF}" +CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" + OECMAKE_TARGET_COMPILE = "compiler-rt" OECMAKE_TARGET_INSTALL = "install-compiler-rt install-compiler-rt-headers" OECMAKE_SOURCEPATH = "${S}/llvm" -- cgit v1.2.3-54-g00ecf