Changeset 4508


Ignore:
Timestamp:
Apr 26, 2013 11:44:26 AM (6 years ago)
Author:
bennylp
Message:

Re #1657: allow --simulator argument to appear at any position in configure-bb10 arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/configure-bb10

    r4500 r4508  
    1616fi 
    1717 
    18 if test "$1" = "--simulator"; then 
    19   shift 
     18# Find simulator argument 
     19args="" 
     20simulator="no" 
     21for arg in "$@"; do 
     22    if test "$arg" = "--simulator"; then 
     23        simulator="yes" 
     24    else 
     25        args="$args $arg" 
     26    fi 
     27done 
     28 
     29if test "$simulator" = "yes"; then 
    2030  TARGET_ARCH="x86" 
    2131  TARGET_ARCHEND=${TARGET_ARCH} 
     
    4252 
    4353# Invoke configure 
    44 ./configure --host=${TARGET_HOST} --disable-oss $* 
     54./configure --host=${TARGET_HOST} --disable-oss $args 
    4555RETVAL=$? 
    4656 
Note: See TracChangeset for help on using the changeset viewer.