Diff

Differences From Artifact [0ebdeb3250]:

To Artifact [d9c2335c1d]:


    60     60   CONFIGUREEXTRA="$@"
    61     61   export CONFIGUREEXTRA
    62     62   
    63     63   if echo " ${CONFIGUREEXTRA} " | grep ' --enable-threads' >/dev/null 2>/dev/null; then
    64     64   	KITCREATOR_PKGS="${KITCREATOR_PKGS} thread"
    65     65   fi
    66     66   
           67  +# Determine cross-compile status
           68  +host_os="$(echo " ${CONFIGUREEXTRA} " sed 's@^.* --host=\([^ ]*\) .*$@\1@
           69  +t x
           70  +d
           71  +:x')"
           72  +build_os="$(echo " ${CONFIGUREEXTRA} " sed 's@^.* --build=\([^ ]*\) .*$@\1@
           73  +t x
           74  +d
           75  +:x')"
           76  +
           77  +if [ "${host_os}" != "${build_os}" -a -n "${host_os}" ]; then
           78  +	KC_CROSSCOMPILE='1'
           79  +	KC_CROSSCOMPILE_HOST_OS="${host_os}"
           80  +else
           81  +	KC_CROSSCOMPILE='0'
           82  +	KC_CROSSCOMPILE_HOST_OS=''
           83  +fi
           84  +export KC_CROSSCOMPILE KC_CROSSCOMPILE_HOST_OS
           85  +
    67     86   # Set default target
    68     87   KITTARGET="kitsh"
    69     88   export KITTARGET
    70     89   
    71     90   # Fix up package list
    72     91   ## If building KitDLL, define it as our target
    73     92   if echo " ${KITCREATOR_PKGS} " | grep ' kitdll ' >/dev/null 2>/dev/null; then