VirtualBox

Changeset 23545 in vbox for trunk/configure


Ignore:
Timestamp:
Oct 5, 2009 9:01:40 AM (15 years ago)
Author:
vboxsync
Message:

Configure-OSX: use the same SDK as in the build environment for the configure tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r23473 r23545  
    121121INCPNG=""
    122122LIBPNG="-lpng"
     123CXX_FLAGS=""
    123124if [ "$OS" = "freebsd" ]; then
    124125  INCCURL="-I/usr/local/include"
     
    257258  cat $ODIR.tmp_src.cc >> $LOG
    258259  echo "using the following command line:" >> $LOG
    259   echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc \"$1\"" >> $LOG
    260   $CXX -g -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc $1 >> $LOG 2>&1
     260  echo "$CXX $CXX_FLAGS -g -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc \"$1\"" >> $LOG
     261  $CXX $CXX_FLAGS -g -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc $1 >> $LOG 2>&1
    261262  if [ $? -ne 0 ]; then
    262263    if [ -z "$4" ]; then
     
    19041905    10\.*)
    19051906      darwin_ver="10.6"
     1907      sdk=/Developer/SDKs/MacOSX10.5.sdk
     1908      CXX_FLAGS="-mmacosx-version-min=10.5 -isysroot $sdk -Wl,-syslibroot,$sdk"
     1909      test "$CC" = "gcc" && CC="gcc-4.0"
     1910      test "$CXX" = "g++" && CXX="g++-4.0"
    19061911      ;;
    19071912    9\.*)
    19081913      darwin_ver="10.5"
     1914      sdk=/Developer/SDKs/MacOSX10.5.sdk
     1915      CXX_FLAGS="-mmacosx-version-min=10.5 -isysroot $sdk -Wl,-syslibroot,$sdk"
     1916      test "$CC" = "gcc" && CC="gcc-4.0"
     1917      test "$CXX" = "g++" && CXX="g++-4.0"
    19091918      cnf_append "VBOX_WITHOUT_VBOXPYTHON_FOR_OSX_10_6" "1"
    19101919      ;;
    19111920    8\.*)
    19121921      darwin_ver="10.4"
     1922      sdk=/Developer/SDKs/MacOSX10.4u.sdk
     1923      CXX_FLAGS="-mmacosx-version-min=10.4 -isysroot $sdk -Wl,-syslibroot,$sdk"
     1924      test "$CC" = "gcc" && CC="gcc-4.0"
     1925      test "$CXX" = "g++" && CXX="g++-4.0"
    19131926      cnf_append "VBOX_WITH_COCOA_QT" ""
    19141927      cnf_append "VBOX_WITHOUT_VBOXPYTHON_FOR_OSX_10_6" "1"
     
    19201933      ;;
    19211934  esac
    1922   log_success "found version $darwin_ver"
     1935  log_success "found version $darwin_ver (SDK: $sdk)"
    19231936}
    19241937
     
    22582271[ $WITH_HARDENING -eq 2 ] && cnf_append "VBOX_WITH_HARDENING" "2"
    22592272
     2273# Darwin-specific
     2274if [ "$OS" = "darwin" ]; then
     2275  check_darwinversion
     2276fi
    22602277# the tools
    22612278check_gcc
     
    23262343    cnf_append "VBOX_WITH_WEBSERVICES" ""
    23272344  fi
    2328 fi
    2329 
    2330 # Darwin-specific
    2331 if [ "$OS" = "darwin" ]; then
    2332   check_darwinversion
    23332345fi
    23342346
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