diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2017-11-27 00:12:13 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-12-29 17:32:28 -0500 |
commit | cc44e04472bf8d0774e09a6cc4bd47175e531b8e (patch) | |
tree | 63a68b190807d96b7c78fb30b4a3b543a242f65d /pkgs/build-support/bintools-wrapper/ld-wrapper.sh | |
parent | 1cde06acf691316a59ad30b207cbd68c64cbc0fa (diff) | |
download | nixlib-cc44e04472bf8d0774e09a6cc4bd47175e531b8e.tar nixlib-cc44e04472bf8d0774e09a6cc4bd47175e531b8e.tar.gz nixlib-cc44e04472bf8d0774e09a6cc4bd47175e531b8e.tar.bz2 nixlib-cc44e04472bf8d0774e09a6cc4bd47175e531b8e.tar.lz nixlib-cc44e04472bf8d0774e09a6cc4bd47175e531b8e.tar.xz nixlib-cc44e04472bf8d0774e09a6cc4bd47175e531b8e.tar.zst nixlib-cc44e04472bf8d0774e09a6cc4bd47175e531b8e.zip |
bintools-wrapper: Define fallback default emulation
This ensures we by-default cross-compile to the intended platform.
Diffstat (limited to 'pkgs/build-support/bintools-wrapper/ld-wrapper.sh')
-rw-r--r-- | pkgs/build-support/bintools-wrapper/ld-wrapper.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/bintools-wrapper/ld-wrapper.sh b/pkgs/build-support/bintools-wrapper/ld-wrapper.sh index 136621d27af5..991ed0fe263c 100644 --- a/pkgs/build-support/bintools-wrapper/ld-wrapper.sh +++ b/pkgs/build-support/bintools-wrapper/ld-wrapper.sh @@ -67,6 +67,11 @@ fi extraAfter+=($NIX_@infixSalt@_LDFLAGS_AFTER) +# Specify the target emulation if nothing is passed in ("-m" overrides this +# environment variable). Ensures we never blindly fallback on targeting the host +# platform. +: ${LDEMULATION:=@emulation@} + # Three tasks: # # 1. Find all -L... switches for rpath |