| commit | e574f15757731e482584f3077979082740ae5a9c | [log] [tgz] |
|---|---|---|
| author | Dan Albert <[email protected]> | Tue Jul 18 15:07:39 2017 -0700 |
| committer | Dan Albert <[email protected]> | Tue Jul 18 15:07:39 2017 -0700 |
| tree | 75090774056656ba3f9baeeaae22a61202720b9d | |
| parent | f3d35cf659b876b829bbc7cdb6f8e14ece5b1b37 [diff] |
Improve Windows dlfcn shims.
We can use GetLastError/FormatMessage to get a less useless error
message from dlerror.
Use LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR to search the loaded library's
directory to satisfy dependencies.
Test: toolchain/gcc/build.py --toolchain arm-linux-androideabi \
--host windows64
Bug: https://github.com/android-ndk/ndk/issues/313
Change-Id: Ia54e75b2ccbb6a4860e1d3e6250468ea053a4ce5