Skip to content

Instantly share code, notes, and snippets.

@f1337
Created November 18, 2011 23:44
Show Gist options
  • Save f1337/1378122 to your computer and use it in GitHub Desktop.
Save f1337/1378122 to your computer and use it in GitHub Desktop.
Android NDK r6 Patch for build-gcc.sh with binutils-2.22.51
--- build-gcc.sh.original 2011-11-18 18:28:59.000000000 -0500
+++ build-gcc.sh 2011-11-18 18:29:01.000000000 -0500
@@ -213,6 +213,20 @@
exit 1
fi
ABI="$OLD_ABI"
+
+
+
+# via Jackie Gleason
+# https://plus.google.com/u/0/111260033634073020811
+# Spot fix for binutils
+# Currently this seems to be a bug. Not sure
+# if it is due to the new binutils I am using
+dump “Fixing Google Bug Copying from $SRC_DIR/binutils/binutils-$BINUTILS_VERSION/binutils/sysinfo.h to $BUILD_OUT/binutils-2.22.51/binutils/sysinfo.h”
+mkdir -p $BUILD_OUT/binutils-2.22.51/binutils
+cp $SRC_DIR/binutils/binutils-$BINUTILS_VERSION/binutils/sysinfo.h $BUILD_OUT/binutils-2.22.51/binutils/
+
+
+
# build the toolchain
dump "Building : $TOOLCHAIN toolchain [this can take a long time]."
cd $BUILD_OUT &&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment