From 71819cc0940a4207aed44e875afd3e2a5c7a8949 Mon Sep 17 00:00:00 2001 From: waddlesplash Date: Sat, 19 May 2018 20:33:10 -0400 Subject: [PATCH] ArchitectureRules: Disable the 'fork' builtin on GCC4+. On GCC 7.3, it conflicts with our definition of 'fork'. The documentation states that disabling builtins has no effect on versions where they do not exist, so we don't need to check for GCC7 here. --- build/jam/ArchitectureRules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 3637c84fc4..1af07cfc30 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -28,7 +28,7 @@ rule ArchitectureSetup architecture # our gcc4 compiler. See this discussion on some issues: # http://www.freelists.org/post/haiku-development/hrev45320-Yet-another-nonobvious-effect-of-ftreevrp-optimization if $(gccVersion[1]) >= 3 { - gccBaseFlags += -fno-strict-aliasing ; + gccBaseFlags += -fno-strict-aliasing -fno-builtin-fork ; if $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 { gccBaseFlags += -fno-tree-vrp ; }