From f1e38490ebc4590bfea7ceb1e24bd976c9394577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 8 Sep 2002 17:08:45 +0000 Subject: [PATCH] If debugging is disabled and the "release build" of BFS is done, optimization is no only "-O1", since gcc obviously produces bad code if compiled with more. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@996 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Jamfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/add-ons/kernel/file_systems/bfs/Jamfile b/src/add-ons/kernel/file_systems/bfs/Jamfile index 42fc004cdb..d080267dfc 100644 --- a/src/add-ons/kernel/file_systems/bfs/Jamfile +++ b/src/add-ons/kernel/file_systems/bfs/Jamfile @@ -8,6 +8,9 @@ SubDir OBOS_TOP src add-ons kernel file_systems bfs ; if $(DEBUG) { defines += DEBUG ; + } else { + # the gcc on BeOS doesn't compile BFS correctly with -O2 or more + OPTIM = -O1 ; } defines = [ FDefines $(defines) ] ;