summaryrefslogtreecommitdiffstats
path: root/rules/binutils.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/binutils.make')
-rw-r--r--rules/binutils.make4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/binutils.make b/rules/binutils.make
index ea7d8e542..b5dd01c0c 100644
--- a/rules/binutils.make
+++ b/rules/binutils.make
@@ -17,7 +17,11 @@ PACKAGES-$(PTXCONF_BINUTILS) += binutils
#
# Paths and names
#
+ifeq ($(shell which $(CROSS_LD)),)
+BINUTILS_VERSION := unknown
+else
BINUTILS_VERSION := $(shell $(CROSS_LD) -v | sed -e 's/.* \(.*\)$$/\1/g')
+endif
BINUTILS := binutils-$(BINUTILS_VERSION)
BINUTILS_SUFFIX := tar.bz2
BINUTILS_URL := $(PTXCONF_SETUP_GNUMIRROR)/binutils/$(BINUTILS).$(BINUTILS_SUFFIX)