VirtualBox

Changeset 15678 in vbox for trunk/configure


Ignore:
Timestamp:
Dec 19, 2008 9:55:01 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41229
Message:

configure: purged the gcc-4.3 check for the recompiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r15608 r15678  
    6767WITH_HARDENING=1
    6868CC="gcc"
    69 CC_COMPAT=""
    7069CC32=""
    7170CC64=""
     
    349348{
    350349  test_header gcc
    351   if [ -n "$CC_COMPAT" ]; then
    352     if check_avail "$CC_COMPAT" CC_COMPAT really; then
    353       cc_compat_ver=`$CC_COMPAT -dumpversion` 2>/dev/null
    354       if [ $? -ne 0 ]; then
    355         log_failure "cannot execute '$CC_COMPAT -dumpversion'"
    356         fail really
    357       fi
    358       cc_compat_maj=`echo $cc_compat_ver|cut -d. -f1`
    359       cc_compat_min=`echo $cc_compat_ver|cut -d. -f2`
    360       if [ $cc_compat_maj -lt 3 \
    361          -o \( $cc_compat_maj -eq 3 -a $cc_compat_min -lt 2 \) \
    362          -o \( $cc_compat_maj -eq 4 -a $cc_compat_min -lt 1 \) \
    363          -o \( $cc_compat_maj -eq 4 -a $cc_compat_min -gt 2 \) \
    364          -o $cc_compat_maj -gt 4 ]; then
    365         log ""
    366         log "  ** Version $cc_compat_ver of the compatibility gcc found. Expected gcc 3.x with x>1"
    367         log "  ** or gcc 4.x with 0<x<3"
    368         fail really
    369       fi
    370       cnf_append "VBOX_RECOMPILER_OP_GCC" "$CC_COMPAT"
    371     fi
    372   fi
    373350  if check_avail "$CC" CC really; then
    374351    cc_ver=`$CC -dumpversion` 2>/dev/null
     
    390367      elif [ $cc_maj -eq 4 -a $cc_min -eq 0 -a "OS" = "darwin" ]; then
    391368        log_success "found version $cc_ver"
    392       elif [ $cc_maj -eq 4 -a $cc_min -eq 3 ]; then
    393         if [ -z "$CC_COMPAT" ]; then
    394           log ""
    395           log "  ** There are known problems with gcc version 4.3 when compiling the recompiler"
    396           log "  ** stuff. You need to specify a compatibility compiler with version < 4.3. Look"
    397           log "  ** for a package compat-gcc-34 on Fedora systems or something similar on other"
    398           log "  ** distributions and call configure with parameter --with-gcc-compat=gcc34."
    399           fail really
    400         fi
    401         log_success "found version $cc_ver + compat version $cc_compat_ver"
    402369      # gcc-4.0 is allowed for Darwin only
    403370      elif [ $cc_maj -lt 3 \
     
    18371804    --with-g++=*)
    18381805      CXX=`echo $option | cut -d'=' -f2`
    1839       ;;
    1840     --with-gcc-compat=*)
    1841       CC_COMPAT=`echo $option | cut -d'=' -f2`
    18421806      ;;
    18431807    --with-kbuild=*)
Note: See TracChangeset for help on using the changeset viewer.

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