From 388d91a7b829b91b95abd2505437d431c468ce7d Mon Sep 17 00:00:00 2001 From: Dominic Martinez Date: Sat, 14 May 2022 09:56:04 -0400 Subject: [PATCH] build: fix jam clean when using emulated attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit should help #10065 Change-Id: I4ebe28834201076c6710be52fc2ace580099dd6c Reviewed-on: https://review.haiku-os.org/c/haiku/+/5313 Reviewed-by: Jérôme Duval Tested-by: Commit checker robot --- src/build/libroot/Jamfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/build/libroot/Jamfile b/src/build/libroot/Jamfile index 4d4ef88f76..3f4334f14f 100644 --- a/src/build/libroot/Jamfile +++ b/src/build/libroot/Jamfile @@ -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 = libroot_build.so ; + File libroot_build.so : libroot_build.so ; + MODE on libroot_build.so = $(EXEMODE) ; + Chmod libroot_build.so ; + RmTemps libroot_build.so : 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 :