|
| 1 | +# Ensure we correctly identify a 64-bit build and |
| 2 | +# use "amd64" and "sparcv9" for the 64-bit cpu string. |
| 3 | +# Changes were developed in-house, are Solaris specific, |
| 4 | +# and are not suitable for upstream. |
| 5 | + |
| 6 | +diff -wpruN --no-dereference '--exclude=*.orig' a~/tool/config.guess a/tool/config.guess |
| 7 | +--- a~/tool/config.guess 1970-01-01 00:00:00 |
| 8 | ++++ a/tool/config.guess 1970-01-01 00:00:00 |
| 9 | +@@ -409,19 +409,9 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAM |
| 10 | + echo i386-pc-auroraux"$UNAME_RELEASE" |
| 11 | + exit ;; |
| 12 | + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
| 13 | +- set_cc_for_build |
| 14 | +- SUN_ARCH=i386 |
| 15 | +- # If there is a compiler, see if it is configured for 64-bit objects. |
| 16 | +- # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
| 17 | +- # This test works for both compilers. |
| 18 | +- if test "$CC_FOR_BUILD" != no_compiler_found; then |
| 19 | +- if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
| 20 | +- (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ |
| 21 | +- grep IS_64BIT_ARCH >/dev/null |
| 22 | +- then |
| 23 | +- SUN_ARCH=x86_64 |
| 24 | +- fi |
| 25 | +- fi |
| 26 | ++ SUN_ARCH="i386" |
| 27 | ++ # Check CFLAGS for the 64-bit compile option to set the arch |
| 28 | ++ echo $CFLAGS | /usr/gnu/bin/grep -q -w '\-m64' && SUN_ARCH="amd64" |
| 29 | + echo "$SUN_ARCH"-pc-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" |
| 30 | + exit ;; |
| 31 | + sun4*:SunOS:6*:*) |
| 32 | +diff -wpruN --no-dereference '--exclude=*.orig' a~/tool/config.sub a/tool/config.sub |
| 33 | +--- a~/tool/config.sub 1970-01-01 00:00:00 |
| 34 | ++++ a/tool/config.sub 1970-01-01 00:00:00 |
| 35 | +@@ -1028,7 +1028,7 @@ case $cpu-$vendor in |
| 36 | + |
| 37 | + # Here we normalize CPU types irrespective of the vendor |
| 38 | + amd64-*) |
| 39 | +- cpu=x86_64 |
| 40 | ++ # don't change basic_machine |
| 41 | + ;; |
| 42 | + blackfin-*) |
| 43 | + cpu=bfin |
0 commit comments