Build DLLs in MinGW+GCC with additional linker flags

Bug: http://b/113171785

https://android-review.googlesource.com/c/741810 has the background
info.  This change passes the right flags when building pthreads, and
makes build.sh verify that the DLLs have the right DllCharactheristics
set to avoid future regressions.

Test: build.sh
Change-Id: Ie75da600ae9d49f32c725daae9e9dee1dc22e414
1 file changed
tree: 06f700b02e60f187fc6bc966827d0fa27ce3e12a
  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.