VirtualBox

Changeset 5534 in vbox


Ignore:
Timestamp:
Oct 27, 2007 2:53:24 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25756
Message:

LIB and PATH hacks for 64-bit solaris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r5533 r5534  
    256256      BUILD_MACHINE='amd64'
    257257      BUILD_CPU='k8'
    258       # on AMD64 systems, 64bit libs are usually located in /usr/lib64
    259       # see http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64
    260       LIB='lib64'
     258      if [ "$OS" != "solaris" ]; then
     259        # on AMD64 systems, 64bit libs are usually located in /usr/lib64
     260        # see http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64
     261        LIB='lib64'
     262      else
     263        # Solaris doesn't seem to subscribe to fhs, libs are usually in
     264        # a '64' subdirectory of the standard 'lib' dirs while some 64-bit
     265        # alternative binaries can be found in 'amd64' subdirs of the 'bin'
     266        # ones. So, in order to find the right stuff (esp. sdl-config) we'll
     267        # have to make sure the */bin/amd64 dirs are searched before the */bin
     268        # ones. (The sed has some sideeffects, but they shouldn't harm us...)
     269        echo "64-bit Solaris detected, hacking the PATH" >> $LOG
     270        echo "old PATH: $PATH" >> $LOG
     271        PATH=`echo ":$PATH:" | sed -e 's,\(:[^:]*/bin\):,\1/amd64:\1:,g' \
     272                                   -e 's/^:*//' -e 's/:*$//g' -e 's/::*/:/g' `
     273        export PATH
     274        echo "new PATH: $PATH" >> $LOG
     275        LIB='lib/64'
     276      fi
    261277      ;;
    262278    *)
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