summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-10-15 17:01:08 -0400
committerMike Frysinger <vapier@gentoo.org>2010-10-16 16:46:44 -0400
commitd2f7323f78e449cf195df73e334fa39440127a9e (patch)
tree761ac41d6b556e5cb20cb5e1416e483e9ab29f96 /package
parent90660c282298fdb6b09baefe44845b923d9e077f (diff)
toolchain: do not require full path
If the toolchain can be found via $PATH, then requiring the full path to it is unnecessary. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'package')
-rw-r--r--package/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 85e655054..fb09083de 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -116,7 +116,11 @@ TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
TOOLCHAIN_EXTERNAL_PREFIX:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
TOOLCHAIN_EXTERNAL_PATH:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH))
+ifneq ($(TOOLCHAIN_EXTERNAL_PATH),)
TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
+else
+TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PREFIX)-
+endif
else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
TARGET_CROSS=$(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-
endif