X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cmake%2Fcross-compile.sh;h=49e66e500cc19d7105d629726bcffd28b937d98b;hb=ef8d0d75d538db543ab0ff68809656f3972e3848;hp=c1821bdbf22dd9c36f90f08a6719c2359a07e5ee;hpb=87d324c3434b03214d82c6fc30cb7a6a754318ab;p=platform%2Fupstream%2Fdbus.git diff --git a/cmake/cross-compile.sh b/cmake/cross-compile.sh index c1821bd..49e66e5 100755 --- a/cmake/cross-compile.sh +++ b/cmake/cross-compile.sh @@ -28,8 +28,13 @@ else exit 1 fi +if ! TEMP=`mktemp --tmpdir -d dbus-cross-compile.XXXXXX`; then + echo "mktemp failed, try with coreutils 6.10 or later?" >&2 + exit 1 +fi + # make cmake happy -export TEMP=/tmp +export TEMP HOST_CC=gcc; export HOST_CC; @@ -67,10 +72,10 @@ done; unset x i ; if ! test -f "$cross_root/lib/libexpat.dll.a"; then - (cd /tmp; wget http://www.winkde.org/pub/kde/ports/win32/repository/win32libs/expat-2.0.1-bin.zip) - (cd /tmp; wget http://www.winkde.org/pub/kde/ports/win32/repository/win32libs/expat-2.0.1-lib.zip) - (cd $cross_root; unzip -x /tmp/expat-2.0.1-bin.zip) - (cd $cross_root; unzip -x /tmp/expat-2.0.1-lib.zip) + (cd $TEMP && wget http://www.winkde.org/pub/kde/ports/win32/repository/win32libs/expat-2.0.1-bin.zip) + (cd $TEMP && wget http://www.winkde.org/pub/kde/ports/win32/repository/win32libs/expat-2.0.1-lib.zip) + (cd $cross_root && unzip -x $TMP/expat-2.0.1-bin.zip) + (cd $cross_root && unzip -x $TMP/expat-2.0.1-lib.zip) fi if test -f "$cross_root/lib/libexpat.dll.a"; then