Index: third_party/binutils/build-all.sh |
diff --git a/third_party/binutils/build-all.sh b/third_party/binutils/build-all.sh |
index fc00db19921463bae49642f8fb3c776c10ecd6c5..a39984ca2b304ade9dee49438fce7996b98170d5 100755 |
--- a/third_party/binutils/build-all.sh |
+++ b/third_party/binutils/build-all.sh |
@@ -44,6 +44,8 @@ if [ ! -d binutils-$VERSION ]; then |
( |
cd binutils-$VERSION |
patch -p1 < ../ehframe-race.patch |
+ patch -p1 < ../unlock-thin.patch |
+ patch -p1 < ../plugin-dso-fix.patch |
) |
fi |
@@ -106,6 +108,10 @@ for ARCH in i386 amd64; do |
# Copy them out of the chroot |
cp -a "$BUILDDIR/output/$ARCHNAME" "$OUTPUTDIR" |
+ # Copy plugin header out of the chroot |
+ mkdir "$OUTPUTDIR/$ARCHNAME/include" |
+ cp "$BUILDDIR/binutils-$VERSION/include/plugin-api.h" "$OUTPUTDIR/$ARCHNAME/include/" |
+ |
# Clean up chroot |
sudo rm -rf "$BUILDDIR" |
done |