build: fix jam clean when using emulated attributes

should help #10065

Change-Id: I4ebe28834201076c6710be52fc2ace580099dd6c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5313
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Dominic Martinez
2022-09-26 14:31:07 +00:00
committed by Adrien Destugues
parent 5897f7b623
commit 388d91a7b8
+11 -3
View File
@@ -79,11 +79,19 @@ local librootSources =
USES_BE_API on [ FGristFiles $(librootSources:S=$(SUFOBJ)) ] = true ;
BuildPlatformSharedLibrary libroot_build.so :
local librootTarget = libroot_build.so ;
if $(HAIKU_HOST_USE_XATTR) = 0 {
# prevent library from being cleaned when emulated attributes are used
librootTarget = <temp>libroot_build.so ;
File libroot_build.so : <temp>libroot_build.so ;
MODE on libroot_build.so = $(EXEMODE) ;
Chmod libroot_build.so ;
RmTemps libroot_build.so : <temp>libroot_build.so ;
}
BuildPlatformSharedLibrary $(librootTarget) :
$(librootSources)
:
$(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
;
$(HOST_LIBSUPC++) $(HOST_LIBSTDC++) ;
# TODO: This doesn't work with the function remapping.
BuildPlatformStaticLibrary libroot_build.a :