aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-18 18:58:34 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-21 05:24:07 +0800
commit034cd675286db07110a773fdb6a857285485d2d4 (patch)
tree7c7d90d534fae490f07c2091e8da69340b9b1073 /Makeconfig
parent6025b399c735d3d9f27472b11fad2cab4f62aeb5 (diff)
downloadglibc-034cd675286db07110a773fdb6a857285485d2d4.tar.xz
glibc-034cd675286db07110a773fdb6a857285485d2d4.zip
Don't use glibc <tgmath.h> when testing with Clang
Clang has its own <tgmath.h> and doesn't use <tgmath.h> from glibc. Pass "-I." to compiler only if $($(<F)-no-include-dot) are undefined. Define it to yes for tgmath tests when testing with Clang. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index d33369eaaf..02a3d371b6 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -1031,7 +1031,8 @@ endif
# current directory.
+includes = -I$(..)include $(if $(subdir),$(objpfx:%/=-I%)) \
$(+sysdep-includes) $(includes) \
- $(patsubst %/,-I%,$(..)) $(libio-include) -I. $(sysincludes)
+ $(patsubst %/,-I%,$(..)) $(libio-include) \
+ $(if $($(<F)-no-include-dot),,-I.) $(sysincludes)
# Since libio has several internal header files, we use a -I instead
# of many little headers in the include directory.