Browse Source

jdupre writes in Bug 390: trying to use buildroot failed telling me to install bison ... turns out i was missing which, not bison

Mike Frysinger 20 năm trước cách đây
mục cha
commit
024b4c8e1a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      toolchain/binutils/binutils.mk

+ 4 - 0
toolchain/binutils/binutils.mk

@@ -68,6 +68,10 @@ $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/ld: $(BINUTILS_DIR1)/binutils/objdump
 	$(MAKE) -C $(BINUTILS_DIR1) install
 
 binutils-dependancies:
+	@if ! which which > /dev/null ; then \
+		echo -e "\n\nYou must install 'which' on your build machine\n"; \
+		exit 1; \
+	fi;
 	@if ! which bison > /dev/null ; then \
 		echo -e "\n\nYou must install 'bison' on your build machine\n"; \
 		exit 1; \