Sourceware Bugzilla – Bug 6917
locale/gen-translit.pl: move preprocessing to Makefile
Last modified: 2013-09-02 07:35:15 UTC
The first line of locale/gen-translit.pl is the following:
open F, "cat C-translit.h.in | gcc -E - |" || die "Cannot preprocess input file"
There are two problems with this:
1) This does not detect any errors while the shell command "cat C-translit.h.in
| gcc -E -" is running. Instead, you get some obscure errors later on when
C-translit.h is using to compile something.
2) $(CPP) should be used instead of gcc -E
So my proposal would be to move this preprocessing to the Makefile and replace
gcc -E by $(CPP).
Created attachment 2963 [details]
maybe replace $(CPP) by $(CC) -E ?