From 2d2528f6f69ccdeda54e1bd0067076f007761478 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 9 Jul 2024 14:44:36 -0400 Subject: [PATCH] fat_shell: Fix build. We need the BSD headers for and other things, so we can't use "strict-ansi". --- src/tools/fat_shell/Jamfile | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/tools/fat_shell/Jamfile b/src/tools/fat_shell/Jamfile index be124c441a..249b19a8f8 100644 --- a/src/tools/fat_shell/Jamfile +++ b/src/tools/fat_shell/Jamfile @@ -1,7 +1,7 @@ SubDir HAIKU_TOP src tools fat_shell ; -# prevent inclusion of HaikuBuildCompatibility.h and BSD headers -DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ; +# prevent inclusion of HaikuBuildCompatibility.h +DEFINES += HAIKU_BUILD_COMPATIBILITY_H ; # set some additional defines { @@ -10,12 +10,7 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H __STRICT_ANSI__ ; ; defines = [ FDefines $(defines) ] ; - local c++flags = - -fno-rtti - ; - if $(HOST_CC_IS_LEGACY_GCC) != 1 { - c++flags += -std=c++11 ; - } + local c++flags = -fno-rtti ; SubDirCcFlags $(defines) [ FDefines _FSSH_AUTO_LOCKER_H=1 _FSSH_STACK_H=1 ] ; # prevent inclusion of C++ headers @@ -30,17 +25,17 @@ local commonSource ; include [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems fat JamCommon ] ; -BuildPlatformMergeObject fatfs.o - : +BuildPlatformMergeObject fatfs.o + : $(commonSource) ; BuildPlatformMain fat_shell : : fatfs.o - fs_shell.a + fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) - $(HOST_LIBROOT) + $(HOST_LIBROOT) $(fsShellCommandLibs) ; @@ -49,6 +44,6 @@ BuildPlatformMain fat_fuse fatfs.o fuse_module.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++) - $(HOST_STATIC_LIBROOT) + $(HOST_STATIC_LIBROOT) $(fsShellCommandLibs) fuse ;