diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-06-20 15:06:30 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-07-07 08:14:41 +0200 |
commit | 0ab16a01bbe02d37ad2daa007fdb5a0de0ff9eab (patch) | |
tree | 1026a24e0a36fee12f8e76e72a36c56c673da504 /package/Makefile.in | |
parent | 359090e693846cc62b9390363e79b5d7afb83eee (diff) | |
download | buildroot-novena-0ab16a01bbe02d37ad2daa007fdb5a0de0ff9eab.tar.gz buildroot-novena-0ab16a01bbe02d37ad2daa007fdb5a0de0ff9eab.zip |
Remove $(TOOLCHAIN_DIR)/bin and $(STAGING_DIR)/{usr/bin,bin} from the PATH
These shouldn't be needed. Even when the cross-compiler is in
$(STAGING_DIR)/usr/bin, we anyway use an absolute path for TARGET_CC,
TARGET_LD and al.
Not having $(STAGING_DIR)/{usr/bin,bin} in the PATH will avoid having
Buildroot trying to run target binaries.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/Makefile.in')
-rw-r--r-- | package/Makefile.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/package/Makefile.in b/package/Makefile.in index 0d80a2a96..1c965c9cf 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -103,17 +103,16 @@ endif REAL_GNU_TARGET_NAME=$(ARCH)-unknown-linux-$(LIBC)$(ABI) ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) - -# Quotes are needed for spaces et al in path components. -TARGET_PATH="$(TOOLCHAIN_DIR)/bin:$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(PATH)" 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)) -TARGET_PATH="$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(TOOLCHAIN_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)" TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)- endif +# Quotes are needed for spaces et al in path components. +TARGET_PATH="$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(PATH)" + # Define TARGET_xx variables for all common binutils/gcc tools by # including the --sysroot option where necessary. TARGET_AR = $(TARGET_CROSS)ar |