bintools-wrapper: Define fallback default emulation

This ensures we by-default cross-compile to the intended platform.
This commit is contained in:
John Ericson
2017-12-29 17:32:28 -05:00
parent 1cde06acf6
commit cc44e04472
2 changed files with 19 additions and 0 deletions
@@ -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