This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

collect-ld.exe removed during bootstrap of a mingw compiler


Hi,

I am making attempts to compile GCC 4.1.1 for mingw and I got the following issue.

Before launching the bootstrap I am copying ld.exe to gcc/collect-ld.exe

The issue is that between stage1 and stage2 collect-ld.exe is removed and replaced by a shell script called collect-ld that calls ./collect-ld.exe. So I get a bootstrap failure.

The issue is in gcc/Makefile.in. I have a patch (for the head and gcc 4.1 branch) to fix that.

Thanks in advance for your review

Here is the Changelog and the patch

* Makefile.in (stamp-collect-ld): Fix issue when ORIGINAL_LD_FOR_TARGET is in . and that $(exeext) is not equal to ""
* Makefile.in (stamp-as): Idem for as
* Makefile.in (stamp-nm): Idem for nm


===================================================================
--- Makefile.in (revision 111925)
+++ Makefile.in (working copy)
@@ -1307,7 +1307,7 @@
stamp-as: $(ORIGINAL_AS_FOR_TARGET)
       @echo creating as; \
       case "$(ORIGINAL_AS_FOR_TARGET)" in \
-         ./as) ;; \
+         ./as$(exeext)) ;; \
         ../*) \
            rm -f as$(exeext); \
            echo $(LN) $< as$(exeext); \
@@ -1323,7 +1323,7 @@
stamp-collect-ld: $(ORIGINAL_LD_FOR_TARGET)
       @echo creating collect-ld; \
       case "$(ORIGINAL_LD_FOR_TARGET)" in \
-         ./collect-ld) ;; \
+         ./collect-ld$(exeext)) ;; \
         ../*) \
            rm -f collect-ld$(exeext); \
            echo $(LN) $< collect-ld$(exeext); \
@@ -1339,7 +1339,7 @@
stamp-nm: $(ORIGINAL_NM_FOR_TARGET)
       @echo creating nm; \
       case "$(ORIGINAL_NM_FOR_TARGET)" in \
-         ./nm) ;; \
+         ./nm$(exeext)) ;; \
         ../*) \
            rm -f nm$(exeext); \
            echo $(LN) $< nm$(exeext); \



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]