Merge pull request #4268 from ftrvxmtrx/androidndk-fix-make-standalone-toolchain
androidndk: fix make-standalone-toolchain.sh helper script
This commit is contained in:
commit
261a3574f1
|
@ -22,6 +22,10 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -pv $out
|
mkdir -pv $out
|
||||||
tar xf $src
|
tar xf $src
|
||||||
mv */* $out
|
mv */* $out
|
||||||
|
|
||||||
|
# so that it doesn't fail because of read-only permissions set
|
||||||
|
patch -p1 -d $out < ${ ./make-standalone-toolchain.patch }
|
||||||
|
|
||||||
find $out \( \
|
find $out \( \
|
||||||
\( -type f -a -name "*.so*" \) -o \
|
\( -type f -a -name "*.so*" \) -o \
|
||||||
\( -type f -a -perm +0100 \) \
|
\( -type f -a -perm +0100 \) \
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
diff -ru android-ndk-r9d.old/build/tools/make-standalone-toolchain.sh android-ndk-r9d/build/tools/make-standalone-toolchain.sh
|
||||||
|
--- android-ndk-r9d.old/build/tools/make-standalone-toolchain.sh 2014-09-25 11:42:09.990500975 +0200
|
||||||
|
+++ android-ndk-r9d/build/tools/make-standalone-toolchain.sh 2014-09-25 11:43:06.097501636 +0200
|
||||||
|
@@ -252,6 +252,9 @@
|
||||||
|
# Now copy the GCC toolchain prebuilt binaries
|
||||||
|
run copy_directory "$TOOLCHAIN_PATH" "$TMPDIR"
|
||||||
|
|
||||||
|
+# Making it writable again
|
||||||
|
+chmod -R +w "$TMPDIR"
|
||||||
|
+
|
||||||
|
# Replace soft-link mcld by real file
|
||||||
|
ALL_LDS=`find $TMPDIR -name "*mcld"`
|
||||||
|
for LD in $ALL_LDS; do
|
Loading…
Reference in New Issue