diff options
author | andrew <andrew@FreeBSD.org> | 2015-04-02 17:03:02 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2015-04-02 17:03:02 +0000 |
commit | 30caa191158ed79be97878a1435972016e6f539f (patch) | |
tree | 2c6f3a5ec98d7fec27b8b689e934e5358648f178 /Makefile.inc1 | |
parent | 5d01d9022560bf79c290ec5a56b969c259e36459 (diff) | |
download | FreeBSD-src-30caa191158ed79be97878a1435972016e6f539f.zip FreeBSD-src-30caa191158ed79be97878a1435972016e6f539f.tar.gz |
Only use the CROSS_BINUTILS_PREFIX tool if it exists.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 0d806c2..c9a01f2 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -344,7 +344,8 @@ X${COMPILER}?= ${${COMPILER}} .endfor XBINUTILS= AS AR LD NM OBJCOPY OBJDUMP RANLIB SIZE STRINGS .for BINUTIL in ${XBINUTILS} -.if defined(CROSS_BINUTILS_PREFIX) +.if defined(CROSS_BINUTILS_PREFIX) && \ + exists(${CROSS_BINUTILS_PREFIX}${${BINUTIL}}) X${BINUTIL}?= ${CROSS_BINUTILS_PREFIX}${${BINUTIL}} .else X${BINUTIL}?= ${${BINUTIL}} |