Skip to content

Commit

Permalink
Add prepare_darwin_sdk in tools
Browse files Browse the repository at this point in the history
  • Loading branch information
diorcety committed Nov 26, 2013
1 parent fb20695 commit 73aa5f9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/prepare_darwin_sdk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

function usage {
echo "Usage: $0 sdk"; exit 1;
}

if [ "$#" == "0" ]; then
usage
fi

SDK_PATH=$1
find $SDK_PATH -type d -exec chmod u+w {} \;
ln -s i686-apple-darwin10 $SDK_PATH/usr/lib/x86_64-apple-darwin10
ln -s i686-apple-darwin10 $SDK_PATH/usr/lib/gcc/x86_64-apple-darwin10
ln -s ../i686-apple-darwin10 $SDK_PATH/usr/include/c++/4.2.1/x86_64-apple-darwin10/i386
ln -s ../i686-apple-darwin9 $SDK_PATH/usr/include/c++/4.2.1/x86_64-apple-darwin9/i386
ln -s ../i686-apple-darwin10 $SDK_PATH/usr/include/c++/4.0.0/x86_64-apple-darwin10/i386
ln -s ../i686-apple-darwin9 $SDK_PATH/usr/include/c++/4.0.0/x86_64-apple-darwin9/i386
find $SDK_PATH -exec chmod a-w {} \;

0 comments on commit 73aa5f9

Please sign in to comment.