VirtualBox

Changeset 5533 in vbox


Ignore:
Timestamp:
Oct 27, 2007 1:52:52 AM (17 years ago)
Author:
vboxsync
Message:

Use isainfo on solaris. add -m64 to the gcc/g++ tests (don't bother with the TOOL_G* stuff because Config.kmk does this).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r5532 r5533  
    230230{
    231231  test_header environment
     232  OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr [:upper:] [:lower:]`
     233  case "$OS" in
     234    linux)
     235      ;;
     236    darwin)
     237      ;;
     238    freebsd)
     239      ;;
     240    sunos)
     241      OS='solaris'
     242      ;;
     243    *)
     244      log_failure "Cannot determine OS"
     245      exit 1
     246      ;;
     247  esac
    232248  BUILD_CPU=`uname -m`
     249  [ "$OS" = "solaris" ] && BUILD_CPU=`isainfo | cut -f 1 -d ' '`
    233250  case "$BUILD_CPU" in
    234251    i[3456789]86|x86|i86pc)
     
    250267  [ -z "$TARGET_MACHINE" ] && TARGET_MACHINE=$BUILD_MACHINE
    251268  [ -z "$TARGET_CPU"     ] && TARGET_CPU=$BUILD_CPU
    252   OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr [:upper:] [:lower:]`
    253   case "$OS" in
    254     linux)
    255       ;;
    256     darwin)
    257       ;;
    258     freebsd)
    259       ;;
    260     sunos)
    261       OS='solaris'
    262       ;;
    263     *)
    264       log_failure "Cannot determine OS"
    265       exit 1
    266       ;;
    267   esac
    268269  DEVDIR_BIN="$DEVDIR/$OS.$BUILD_MACHINE/bin"
    269270  KBUILDDIR_BIN="$KBUILDDIR/bin/$OS.$BUILD_MACHINE"
     
    349350        cnf_append "TOOL_GXX32_LD"  "$CXX32"
    350351      fi
     352      # this isn't not necessary, there is not such tool.
    351353      if [ -n "$CC64" ]; then
    352354        cnf_append "TOOL_GCC64_CC"  "$CC64"
     
    361363        cnf_append "TOOL_GXX64_LD"  "$CXX64"
    362364      fi
     365      # Solaris sports a 32-bit gcc/g++.
     366      if [ "$OS" = "solaris" -a "$BUILD_MACHINE" = "amd64" ]; then
     367        [ "$CC" = "gcc" ] && CC="gcc -m64"
     368        [ "$CXX" = "g++" ] && CXX="g++ -m64"
     369      fi
    363370    fi
    364371  fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette