Skip to content

Commit

Permalink
Let CROSS_BINUTILS_PREFIX work without a trailing slash.
Browse files Browse the repository at this point in the history
Reported by:	jhb
MFC after:	2 weeks
Sponsored by:	Dell EMC
  • Loading branch information
bdrewery committed Jun 19, 2018
1 parent d14e69b commit 39ee8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ CROSS_BINUTILS_PREFIX=/usr/local/${TARGET_ARCH}-freebsd/bin/
XBINUTILS= AS AR LD NM OBJCOPY RANLIB SIZE STRINGS
.for BINUTIL in ${XBINUTILS}
.if defined(CROSS_BINUTILS_PREFIX) && \
exists(${CROSS_BINUTILS_PREFIX}${${BINUTIL}})
X${BINUTIL}?= ${CROSS_BINUTILS_PREFIX}${${BINUTIL}}
exists(${CROSS_BINUTILS_PREFIX}/${${BINUTIL}})
X${BINUTIL}?= ${CROSS_BINUTILS_PREFIX:C,/*$,,}/${${BINUTIL}}
.else
X${BINUTIL}?= ${${BINUTIL}}
.endif
Expand Down

0 comments on commit 39ee8ca

Please sign in to comment.