diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 08:04:25 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 12:42:02 +0800 |
commit | a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3 (patch) | |
tree | d67df1840e49c8d1978a924b2ae2c434fde93735 /Makefile | |
parent | fe925cb04585dd1cfca4094b255b3390bc56f770 (diff) | |
download | glibc-a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3.zip glibc-a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3.tar.gz glibc-a0704d9fc68a84f3e7d29179c3f907fe3f10b2c3.tar.bz2 |
Use -finput-charset=ascii only if supported
Check if -finput-charset=ascii is supported before using it in
check-installed-headers.sh.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -546,7 +546,8 @@ libof-check-installed-headers-c := testsuite $(objpfx)check-installed-headers-c.out: \ scripts/check-installed-headers.sh $(headers) $(SHELL) $(..)scripts/check-installed-headers.sh c $(supported-fortify) \ - "$(CC) $(filter-out -std=%,$(CFLAGS)) -D_ISOMAC $(+includes)" \ + "$(CC) $(test-config-cflags-finput-charset-ascii) \ + $(filter-out -std=%,$(CFLAGS)) -D_ISOMAC $(+includes)" \ $(headers) > $@; \ $(evaluate-test) @@ -556,7 +557,8 @@ libof-check-installed-headers-cxx := testsuite $(objpfx)check-installed-headers-cxx.out: \ scripts/check-installed-headers.sh $(headers) $(SHELL) $(..)scripts/check-installed-headers.sh c++ $(supported-fortify) \ - "$(CXX) $(filter-out -std=%,$(CXXFLAGS)) -D_ISOMAC $(+includes)" \ + "$(CXX) $(test-config-cxxflags-finput-charset-ascii) \ + $(filter-out -std=%,$(CXXFLAGS)) -D_ISOMAC $(+includes)" \ $(headers) > $@; \ $(evaluate-test) endif # $(CXX) |