[haiku-commits] haiku: hrev43273 - build/scripts

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 15 Nov 2011 19:49:49 +0100 (CET)

Revision:    hrev43273
Commit:      4f23d85e4fc9f58e2d8d37ddd7b41d8ad635c522
URL:         http://cgit.haiku-os.org/haiku/commit/?id=4f23d85
Author:      Ingo Weinhold <ingo_weinhold@xxxxxx>
Date:        Tue Nov 15 18:45:48 2011 UTC

Work around issue with newer bison versions

Touch the source files generated by bison, so that make won't try to
have them updated.

............................................................................

 build/scripts/build_cross_tools |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/build/scripts/build_cross_tools b/build/scripts/build_cross_tools
index 9f7f9cc..6f5efa9 100755
--- a/build/scripts/build_cross_tools
+++ b/build/scripts/build_cross_tools
@@ -122,6 +122,10 @@ copy_headers $haikuSourceDir/headers/config 
$tmpIncludeDir/config
 copy_headers $haikuSourceDir/headers/os $tmpIncludeDir/os
 copy_headers $haikuSourceDir/headers/posix $tmpIncludeDir/posix
 
+# Touch some files generated by bison, so that bison won't run to update them.
+# Fixes issues with newer bison versions.
+(cd $buildToolsDir/gcc/gcc; touch c-parse.c c-parse.h cexp.c)
+
 # configure gcc
 cd $gccObjDir
 CFLAGS="-O2 -U_FORTIFY_SOURCE" CXXFLAGS="-O2" $buildToolsDir/gcc/configure \


Other related posts: