2013/6/22 Ian Lance Taylor <[email protected]>:
> On Thu, Jun 20, 2013 at 6:25 PM, Mike Stump <[email protected]> wrote:
>> A make clean followed by a make in the libgcc directory results in:
>>
>> ../../../../gcc/libgcc/config/i386/cpuinfo.c:23:25: fatal error:
>> auto-target.h: No such file or directory
>> #include "auto-target.h"
>>
>> Oh, the the old days, we'd just add a dependancy… If someone knows where to
>> add just the right one… I ask, because there doesn't seem to be a single .h
>> dependency anywhere…
>
> auto-target.h is created by the configure script.
>
> It's a bug that it is removed by "make clean". It should only be
> removed by "make distclean".
>
> Ian
Well... in that case, how about this patch??
Index: libgcc/Makefile.in
===================================================================
--- libgcc/Makefile.in (revision 200306)
+++ libgcc/Makefile.in (working copy)
@@ -121,7 +121,7 @@
.PHONY: all clean
clean:
- -rm -f auto-target.h libgcc_tm.h libgcc.map
+ -rm -f libgcc_tm.h libgcc.map
-rm -f libgcc_tm.stamp stamp-h stmp-ldirs
-rm -f *$(objext)
-rm -f *.dep
@@ -131,6 +131,7 @@
@$(MULTICLEAN) multi-clean DO=clean
distclean: clean
@$(MULTICLEAN) multi-clean DO=distclean
+ -rm -f auto-target.h
-rm -f *~ Makefile config.cache config.status multilib.out
-rm -f config.log
maintainer-clean realclean: distclean
Hi, Mike, would you try it to see if it fixes the problem?
If it does, I will post the patch on [email protected]
to acquire Ian's approval. :)
Best regards,
jasonwucj