From 4e5de20389b400f69f1a2182f0830d3e601b9957 Mon Sep 17 00:00:00 2001
From: Mathieu Virbel <mat@kivy.org>
Date: Sun, 16 Dec 2012 13:40:15 +0100
Subject: [PATCH] fix build-sdl.all to be cwd change resistant

---
 tools/build-sdl.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/build-sdl.sh b/tools/build-sdl.sh
index 5295d7a..df8059d 100755
--- a/tools/build-sdl.sh
+++ b/tools/build-sdl.sh
@@ -4,8 +4,8 @@ pushd $KIVYIOSROOT/src/SDL/Xcode-iOS/SDL
 xcodebuild -project SDL.xcodeproj -target libSDL -configuration Release -sdk iphoneos$SDKVER
 popd
 
-cp src/SDL/Xcode-iOS/SDL/build/Release-iphoneos/libSDL2.a $BUILDROOT/lib
-cp -a src/SDL/include $BUILDROOT/include/SDL 
+cp $KIVYIOSROOT/src/SDL/Xcode-iOS/SDL/build/Release-iphoneos/libSDL2.a $BUILDROOT/lib
+cp -a $KIVYIOSROOT/src/SDL/include $BUILDROOT/include/SDL 
 
 cat>$BUILDROOT/pkgconfig/sdl.pc<<EOF
 # sdl pkg-config source file