Changeset 5533 in vbox
- Timestamp:
- Oct 27, 2007 1:52:52 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r5532 r5533 230 230 { 231 231 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 232 248 BUILD_CPU=`uname -m` 249 [ "$OS" = "solaris" ] && BUILD_CPU=`isainfo | cut -f 1 -d ' '` 233 250 case "$BUILD_CPU" in 234 251 i[3456789]86|x86|i86pc) … … 250 267 [ -z "$TARGET_MACHINE" ] && TARGET_MACHINE=$BUILD_MACHINE 251 268 [ -z "$TARGET_CPU" ] && TARGET_CPU=$BUILD_CPU 252 OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr [:upper:] [:lower:]`253 case "$OS" in254 linux)255 ;;256 darwin)257 ;;258 freebsd)259 ;;260 sunos)261 OS='solaris'262 ;;263 *)264 log_failure "Cannot determine OS"265 exit 1266 ;;267 esac268 269 DEVDIR_BIN="$DEVDIR/$OS.$BUILD_MACHINE/bin" 269 270 KBUILDDIR_BIN="$KBUILDDIR/bin/$OS.$BUILD_MACHINE" … … 349 350 cnf_append "TOOL_GXX32_LD" "$CXX32" 350 351 fi 352 # this isn't not necessary, there is not such tool. 351 353 if [ -n "$CC64" ]; then 352 354 cnf_append "TOOL_GCC64_CC" "$CC64" … … 361 363 cnf_append "TOOL_GXX64_LD" "$CXX64" 362 364 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 363 370 fi 364 371 fi
Note:
See TracChangeset
for help on using the changeset viewer.