//! Makes the linker script available to patch crates.
//!
//! Copies `link/patch_imx.ld` into this crate's `OUT_DIR` and adds that
//! directory to the linker search path. Cargo passes `-L` flags from a
//! dependency's build script through to the final link, so a patch crate
//! only needs `-C link-arg=-Tpatch_imx.ld` in its `.cargo/config.toml` and
//! never has to know where `endless-rs` lives on disk.
use Error;
use PathBuf;
use ;