From: H.J. Lu Date: Sun, 15 Dec 2024 23:30:44 +0000 (+0800) Subject: Remove Clang /usr/include/tgmath.h dependency X-Git-Tag: glibc-2.41~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ec6f72b86e2ed9d0244c2b4ad801706644c43b;p=thirdparty%2Fglibc.git Remove Clang /usr/include/tgmath.h dependency Remove the /usr/include/tgmath.h dependency generated by Clang even though Clang never reads /usr/include/tgmath.h. Signed-off-by: H.J. Lu Reviewed-by: Sam James --- diff --git a/Makerules b/Makerules index 275110dda8..c8b54f7d9a 100644 --- a/Makerules +++ b/Makerules @@ -469,9 +469,13 @@ S-CPPFLAGS = -DASSEMBLER $(asm-CPPFLAGS) ifneq (,$(objpfx)) # Continuation lines here are dangerous because they introduce spaces! +# Also remove the /usr/include/tgmath.h dependency generated by Clang +# even though Clang never reads /usr/include/tgmath.h. define sed-remove-objpfx -e 's@ $(subst .,\.,$(subst @,\@,$(common-objpfx)))@ $$(common-objpfx)@g' \ --e 's@^$(subst .,\.,$(subst @,\@,$(common-objpfx)))@$$(common-objpfx)@g' +-e 's@^$(subst .,\.,$(subst @,\@,$(common-objpfx)))@$$(common-objpfx)@g' \ +-e 's@/usr/include/tgmath.h:@@' \ +-e 's@ /usr/include/tgmath.h@@' endef endif