Auto merge of #5394 - henriklaxhuber:master, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 24 Apr 2018 14:36:52 +0000 (14:36 +0000)
committerbors <bors@rust-lang.org>
Tue, 24 Apr 2018 14:36:52 +0000 (14:36 +0000)
commit9092298d44027791b89908cfa64dc3de138b3b74
treebba3e75905781f5a97025a36c1679bdedd08bae5
parent7debd81f03b5a5fb23668ccb95f1fe7cafb01d8b
parent3ebdc722c6e46ceef10256daaaec592bb02b9953
Auto merge of #5394 - henriklaxhuber:master, r=alexcrichton

Pass linker path to build script

This change adds the environment variable LINKER to pass the path of the linker used by cargo to the build script. This complements the variable RUSTC (the rustc binary used) to give the build script full knowledge of its environment.

A specific usage example would be automatically generating bindings to system headers in cross compilation, e.g. by locating jni.h for android targets.