]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove Clang /usr/include/tgmath.h dependency
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Dec 2024 23:30:44 +0000 (07:30 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 22 Dec 2024 04:50:53 +0000 (12:50 +0800)
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 <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Makerules

index 275110dda82fa77e91e7064a77e98ca2bb19d5db..c8b54f7d9a6ead7739b31d72dabbfc1b78e0a40e 100644 (file)
--- 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
 \f