aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-16 07:30:44 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-22 12:50:53 +0800
commitb2ec6f72b86e2ed9d0244c2b4ad801706644c43b (patch)
treed97ed8770cacf3e581b3c2c2e845c6b674931dc5
parentbdc7f4b4e25f49b4e25578d98d58b113d0e961f1 (diff)
downloadglibc-b2ec6f72b86e2ed9d0244c2b4ad801706644c43b.zip
glibc-b2ec6f72b86e2ed9d0244c2b4ad801706644c43b.tar.gz
glibc-b2ec6f72b86e2ed9d0244c2b4ad801706644c43b.tar.bz2
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 <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
-rw-r--r--Makerules6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 275110d..c8b54f7d 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