2007-11-14 21:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/make_xmingwce.sh
    * updated for different then GCC host C compiler name
      (DJGPP in DOS and MINGW32 in MS-Windows)
This commit is contained in:
Przemyslaw Czerpak
2007-11-14 20:54:20 +00:00
parent 1a936ea93a
commit c0fb1e05b5
2 changed files with 10 additions and 3 deletions

View File

@@ -8,6 +8,11 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2007-11-14 21:53 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/make_xmingwce.sh
* updated for different then GCC host C compiler name
(DJGPP in DOS and MINGW32 in MS-Windows)
2007-11-14 19:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
* harbour/source/common/hbwince.c

View File

@@ -20,10 +20,12 @@ UNAME=`uname -s | tr -d "[-]" 2>/dev/null`
if [ "$OSTYPE" = "msdosdjgpp" ]; then
HB_HOST_ARCH="dos"
HB_HOST_CC="djgpp"
else
HB_HOST_ARCH=`echo "$UNAME"|tr '[A-Z]' '[a-z]'`
HB_HOST_CC="gcc"
case "$HB_HOST_ARCH" in
*windows*|*mingw32*|msys*) HB_HOST_ARCH="w32" ;;
*windows*|*mingw32*|msys*) HB_HOST_ARCH="w32"; HB_HOST_CC="mingw32" ;;
*dos) HB_HOST_ARCH="dos" ;;
*bsd) HB_HOST_ARCH="bsd" ;;
esac
@@ -59,7 +61,7 @@ DIR=`cd $(dirname $0);pwd`
if which harbour &> /dev/null; then
HB_COMP_PATH=`which harbour 2> /dev/null`
else
HB_COMP_PATH="$DIR/source/main/$HB_HOST_ARCH/gcc/harbour"
HB_COMP_PATH="$DIR/source/main/$HB_HOST_ARCH/$HB_HOST_CC/harbour"
fi
if [ -x "${HB_COMP_PATH}" ]; then
ln -s "${HB_COMP_PATH}" ${HB_BIN_COMPILE}/harbour.exe
@@ -68,7 +70,7 @@ else
exit 1
fi
ln -s "$DIR/source/pp/$HB_HOST_ARCH/gcc/hbppgen" ${HB_BIN_COMPILE}/hbppgen.exe
ln -s "$DIR/source/pp/$HB_HOST_ARCH/$HB_HOST_CC/hbppgen" ${HB_BIN_COMPILE}/hbppgen.exe
export HB_PPGEN_PATH=${HB_BIN_COMPILE}
case "$1" in