Remove whole sys-include folder when cross-compiler has been built.

* at least for gcc2, we used to leave the 'os' subfolder in there,
  which may have caused problems when Haiku's headers have changed
  since the last time the compiler was built.
(cherry picked from commit 92bb2fb33e)
This commit is contained in:
Oliver Tappe
2013-06-14 19:31:20 +02:00
parent de2188e964
commit 49f8422a0d
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -189,8 +189,7 @@ rm -f $installDir/lib/gcc-lib/i586-pc-haiku/$haikuRequiredLegacyGCCVersion/inclu
# remove the system headers from the installation dir
# Only the ones from the source tree should be used.
sysIncludeDir=$installDir/i586-pc-haiku/sys-include
rm -rf $sysIncludeDir/be $sysIncludeDir/posix
rm -rf $installDir/i586-pc-haiku/sys-include
# remove the objects dir
rm -rf $objDir
+1 -2
View File
@@ -247,8 +247,7 @@ fi
# remove the system headers from the installation dir
# Only the ones from the source tree should be used.
sysIncludeDir=$installDir/$haikuMachine/sys-include
rm -rf $sysIncludeDir/os $sysIncludeDir/posix
rm -rf $installDir/$haikuMachine/sys-include
# remove the objects dir
rm -rf $objDir