Prevent a possible deadlock in the linker script when using goma.
Make (and now ninja) run ld under flock. Goma allows only a limited
number N of local gcc processes, which it does by running a custom gcc.
If N gcc processes are trying to run a link, N-1 will be waiting on
flock. The Nth process then tries to call an N+1th gcc process to determine the
bitness of the system, which blocks.
As a workaround, use getconf to determine bitness instead.
Review URL: https://chromiumcodereview.appspot.com/9402039
git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/gold@122292 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
1 file changed