VirtualBox

Changeset 4757 in vbox


Ignore:
Timestamp:
Sep 13, 2007 8:27:45 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24440
Message:

Solaris fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r4746 r4757  
    2020# append some extra paths
    2121PATH="$PATH:/opt/gnome/bin"
    22 # solaris
    23 PATH="/usr/ucb:/usr/xpg4/bin:$PATH:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin"
    24 export PATH
     22# Solaris (order of paths important for tr, echo, grep, sed to work)
     23PATH="/usr/xpg4/bin:/usr/ucb:$PATH:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin"
    2524
    2625#
     
    118117strip_l()
    119118{
    120   echo "$1"|sed 's|-l\([^ ]\+\)|\1|g; s|-[^l]\([^ ]\+\)||g; s|^ ||; s| *$||g'
     119  echo "$1"|$KBUILD_SED 's|-l\([^ ]\+\)|\1|g; s|-[^l]\([^ ]\+\)||g; s|^ ||; s| *$||g'
    121120}
    122121
    123122strip_L()
    124123{
    125   echo "$1"|sed 's|-L\([^ ]\+\)|\1|g; s|-[^L]\([^ ]\+\)||g; s|^ ||; s| *$||g'
     124  echo "$1"|$KBUILD_SED 's|-L\([^ ]\+\)|\1|g; s|-[^L]\([^ ]\+\)||g; s|^ ||; s| *$||g'
    126125}
    127126
    128127strip_I()
    129128{
    130   echo "$1"|sed 's|-I\([^ ]\+\)|\1|g; s|-[^I]\([^ ]\+\)||g; s|^ ||; s| *$||g'
     129  echo "$1"|$KBUILD_SED 's|-I\([^ ]\+\)|\1|g; s|-[^I]\([^ ]\+\)||g; s|^ ||; s| *$||g'
    131130}
    132131
     
    142141  fi
    143142  if [ "$have_ancient_which" = "yes" ]; then
    144     local retval=`which $* 2>/dev/null`
     143    retval=`which $* 2>/dev/null`
    145144    echo "$retval"
    146145    test -n "$retval" -a -e "$retval"
     146    unset retval
    147147  else
    148148    which $* 2> /dev/null
     
    256256  DEVDIR_BIN="$DEVDIR/$OS.$BUILD_MACHINE/bin"
    257257  KBUILDDIR_BIN="$KBUILDDIR/bin/$OS.$BUILD_MACHINE"
     258  KBUILD_SED="$KBUILDDIR_BIN/kmk_sed"
    258259  log_success "Determined build machine: $OS.$BUILD_MACHINE, target machine: $OS.$TARGET_MACHINE"
    259260
     
    370371EOF
    371372      cat .tmp_src.c >> $LOG
    372       local bcc_path=`which_wrapper $BCC`
    373       local bcc_dir="`dirname $bcc_path`/"
     373      bcc_path=`which_wrapper $BCC`
     374      bcc_dir="`dirname $bcc_path`/"
    374375      echo "using the following command line:" >> $LOG
    375376      echo "$BCC -B $bcc_dir -C-c -3 -S -o .tmp_out .tmp_src.c" >> $LOG
     
    382383        cnf_append "VBOX_BCC" "$bcc_path -B $bcc_dir"
    383384      fi
     385      unset bcc_path
     386      unset bcc_dir
    384387    fi
    385388  fi
     
    10741077    echo "export PATH_KBUILD_BIN=\"\$path_kbuild_bin\"" >> $ENV
    10751078    echo "path_dev_bin=\"\$PATH_DEVTOOLS/\$BUILD_TARGET.\$BUILD_PLATFORM_ARCH\"/bin" >> $ENV
    1076     echo "echo \"\$PATH\" | grep -q \"\$path_kbuild_bin\" || PATH=\"\$path_kbuild_bin:\$PATH\"" >> $ENV
    1077     echo "echo \"\$PATH\" | grep -q \"\$path_dev_bin\" || PATH=\"\$path_dev_bin:\$PATH\"" >> $ENV
     1079    if [ "$OS" = "solaris" ]; then
     1080      # Because of sh being non-default shell in Solaris we need to export PATH again when
     1081      # sourcing env.sh. Simply exporting from ./configure does not export PATH correctly.
     1082      echo "PATH=\"$PATH\"" >> $ENV
     1083      echo "echo \"\$PATH\" | /usr/sfw/bin/ggrep -q \"\$path_kbuild_bin\" || PATH=\"\$path_kbuild_bin:\$PATH\"" >> $ENV
     1084      echo "echo \"\$PATH\" | /usr/sfw/bin/ggrep -q \"\$path_dev_bin\" || PATH=\"\$path_dev_bin:\$PATH\"" >> $ENV
     1085    else
     1086      echo "echo \"\$PATH\" | grep -q \"\$path_kbuild_bin\" || PATH=\"\$path_kbuild_bin:\$PATH\"" >> $ENV
     1087      echo "echo \"\$PATH\" | grep -q \"\$path_dev_bin\" || PATH=\"\$path_dev_bin:\$PATH\"" >> $ENV
     1088    fi
    10781089    echo "export PATH" >> $ENV
    10791090    echo "unset path_kbuild_bin path_dev_bin" >> $ENV
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