build.sh: Enable LTO and plugins for binutils

This adds a few configuration flags for binutils to ensure
that it supports link-time-optimization. This requires gold
and plugins as well.

Change-Id: I4a0de22b6dbd959248ad28c2584ad4e24d3b45ab
1 file changed
tree: bf7893345122351b4c96557cfa8649106cc64546
  1. mingw-w64-v5.0.0/
  2. build.sh
  3. README.md
  4. README.version
README.md

Building Mingw for Android

The build.sh script in this directory is used to build mingw for Android.

Mingw is built from the mingw branch of AOSP. To fetch the sources:

repo init -u https://android.googlesource.com/platform/manifest -b mingw

# Googlers, use
repo init -u \
    persistent-https://android.git.corp.google.com/platform/manifest -b mingw

To build, run build.sh. Run with --help for a list of options.