diff options
| author | Mike Frysinger | 2004-12-19 16:43:03 +0100 |
|---|---|---|
| committer | Mike Frysinger | 2004-12-19 16:43:03 +0100 |
| commit | f336cfc9dba41ab854183680d6ccd30e0cb77157 (patch) | |
| tree | 4ce796bbde9cee174d419402270be7623da8cbd8 | |
| parent | Martin Herren writes: (diff) | |
| download | buildroot-f336cfc9dba41ab854183680d6ccd30e0cb77157.tar.gz buildroot-f336cfc9dba41ab854183680d6ccd30e0cb77157.tar.xz buildroot-f336cfc9dba41ab854183680d6ccd30e0cb77157.zip | |
use which to locate apps (useful for non-Linux systems like OS X)
| -rw-r--r-- | toolchain/binutils/binutils.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk index cdb5f823d..9841278cf 100644 --- a/toolchain/binutils/binutils.mk +++ b/toolchain/binutils/binutils.mk @@ -58,15 +58,15 @@ $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/ld: $(BINUTILS_DIR1)/binutils/objdump $(MAKE) -C $(BINUTILS_DIR1) install binutils-dependancies: - @if [ ! -x /usr/bin/bison ] ; then \ + @if ! which bison ; then \ echo -e "\n\nYou must install 'bison' on your build machine\n"; \ exit 1; \ fi; - @if [ ! -x /usr/bin/flex ] ; then \ + @if ! which flex ; then \ echo -e "\n\nYou must install 'flex' on your build machine\n"; \ exit 1; \ fi; - @if [ ! -x /usr/bin/msgfmt ] ; then \ + @if ! which msgfmt ; then \ echo -e "\n\nYou must install 'gettext' on your build machine\n"; \ exit 1; \ fi; |
