From 3ff0d7a8824398aa1713a61ad692a731bb5e525f Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 23 Nov 2021 16:36:48 -0500 Subject: [PATCH] libroot: Compile x86_64's arch_string with -fno-builtin. Otherwise, GCC and Clang create infinite recursions. Fixes #15827. --- src/system/libroot/posix/string/arch/x86_64/Jamfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/libroot/posix/string/arch/x86_64/Jamfile b/src/system/libroot/posix/string/arch/x86_64/Jamfile index e9324568a1..389f9c0146 100644 --- a/src/system/libroot/posix/string/arch/x86_64/Jamfile +++ b/src/system/libroot/posix/string/arch/x86_64/Jamfile @@ -1,5 +1,8 @@ SubDir HAIKU_TOP src system libroot posix string arch x86_64 ; +# Optimizations create infinite recursion otherwise. +SubDirC++Flags -fno-builtin ; + local architectureObject ; for architectureObject in [ MultiArchSubDirSetup x86_64 ] { on $(architectureObject) {