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

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 27 Aug 2018 22:26:19 -0400 (EDT)

hrev52293 adds 1 changeset to branch 'master'
old head: 2cf7d49495aa2168ae3a99be295f1607873629b5
new head: d34addaf3fdd0a9c64402d595a7e45c770143460
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=d34addaf3fdd+%5E2cf7d49495aa

----------------------------------------------------------------------------

d34addaf3fdd: build_cross_tools: Compile GCC2 as 32-bit everywhere.
  
  It is just straight up broken on most systems without this, as
  the same "cast specifies signature type" appears there too.
  
  Exactly why this fixes the problem does not appear to be any more known
  than it was when this was first instated in 2012.

                                   [ waddlesplash <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52293
Commit:      d34addaf3fdd0a9c64402d595a7e45c770143460
URL:         https://git.haiku-os.org/haiku/commit/?id=d34addaf3fdd
Author:      waddlesplash <waddlesplash@xxxxxxxxx>
Date:        Tue Aug 28 02:06:33 2018 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 6 deletions(-)
build/scripts/build_cross_tools | 8 ++------

----------------------------------------------------------------------------

diff --git a/build/scripts/build_cross_tools b/build/scripts/build_cross_tools
index 58776f1761..eed12fea24 100755
--- a/build/scripts/build_cross_tools
+++ b/build/scripts/build_cross_tools
@@ -151,12 +151,8 @@ copy_headers $haikuSourceDir/headers/posix 
$tmpIncludeDir/posix
 
 # configure gcc
 cd $gccObjDir
-case `uname` in
-       Darwin)
-               # GCC 2 compiled for x86_64 OS X is broken, compile for i386.
-               export CC="gcc -arch i386"
-       ;;
-esac
+# GCC 2 compiled for x86_64 on most systems is broken, compile for 32-bit.
+export CC="gcc -m32"
 CFLAGS="-O2 -U_FORTIFY_SOURCE" CXXFLAGS="-O2" $buildToolsDir/gcc/configure \
        --prefix=$installDir $buildHostSpec --target=i586-pc-haiku \
        --disable-nls --enable-shared=yes --enable-languages=c,c++ \


Other related posts:

  • » [haiku-commits] haiku: hrev52293 - build/scripts - waddlesplash