From c5dd6eb9789dce2c23087ba75cf39bf0f91297fb Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 26 Apr 2014 16:43:50 +0200 Subject: mixing build path and host exec. name doesn't work Change-Id: I54785205e3884ddf7b94ef7f43617bd329c4e780 --- solenv/gbuild/TargetLocations.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'solenv') diff --git a/solenv/gbuild/TargetLocations.mk b/solenv/gbuild/TargetLocations.mk index 4958d4d6584d..0157cd343dff 100644 --- a/solenv/gbuild/TargetLocations.mk +++ b/solenv/gbuild/TargetLocations.mk @@ -333,6 +333,10 @@ define gb_Executable_get_filename $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_FILENAMES))) endef +define gb_Executable_get_filename_for_build +$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Executable_FILENAMES_FOR_BUILD))) +endef + # Get dependencies needed for running the executable # # This is not strictly necessary, but it makes the use more similar to @@ -361,7 +365,7 @@ endef ifneq ($(CROSS_COMPILING),) # Can we assume this is used only for executables registered for "NONE"? define gb_Executable_get_target_for_build -$(call gb_Executable__get_dir_for_exe_for_build,$(1))/$(call gb_Executable_get_filename,$(1)) +$(call gb_Executable__get_dir_for_exe_for_build,$(1))/$(call gb_Executable_get_filename_for_build,$(1)) endef else gb_Executable_get_target_for_build = $(gb_Executable_get_target) -- cgit v1.2.3