psmedley / gcc

GNU General Public License v2.0
7 stars 1 forks source link

build stops due to fixincl #17

Closed komh closed 8 years ago

komh commented 9 years ago

Here is the patch.

From 40ffb56019d5fc9ee21237b3bed78d8dc745c2c8 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh@chollian.net>
Date: Sat, 26 May 2012 12:50:47 +0900
Subject: [PATCH 1/1] OS/2: Append $(exeext) to fixincl target

This fixes the problem that build process stops due to trying to generate
fixincl even though fixincl.exe was already made.

---
 gcc/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 8f93bfb..8759fd4 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2721,13 +2721,13 @@ s-fixinc_list : $(GCC_PASSES)
 # Because of CCACHE_HARDLINK, this will also update the timestamp in
 # the build tree, and so fixincl in the build tree will appear to be
 # out of date.  Yuck.
-../$(build_subdir)/fixincludes/fixincl: ; @ :
+../$(build_subdir)/fixincludes/fixincl$(exeext): ; @ :

 # Build fixed copies of system files.
 # Abort if no system headers available, unless building a crosscompiler.
 # FIXME: abort unless building --without-headers would be more accurate and less ugly
 stmp-fixinc: gsyslimits.h macro_list fixinc_list \
-  $(build_objdir)/fixincludes/fixincl \
+  $(build_objdir)/fixincludes/fixincl$(exeext) \
   $(build_objdir)/fixincludes/fixinc.sh
    rm -rf include-fixed; mkdir include-fixed
    -chmod a+rx include-fixed
-- 
1.9.5

-----
psmedley commented 9 years ago

I have added this patch for my local build of GCC 5.2.0

komh commented 8 years ago

Pushed as commit 284c93ce585dfc4314e8b6763af979a3efd1856f.