summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index eeeb9ac53f..f395c18185 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -362,7 +362,7 @@ define built-program-cmd
 LD_LIBRARY_PATH=$(rpath-link)$(patsubst -Wl$(comma)-rpath-link=%,:%,\
 					 $(filter -Wl$(comma)-rpath-link=%,\
 						  $(sysdep-LDFLAGS))) \
-$(elf-objpfx)ld.so $(built-program-file)
+$(elf-objpfx)$(rtld-installed-name) $(built-program-file)
 endef
 endif
 
@@ -489,6 +489,10 @@ endif
 
 +gnu-stabs = $(shell echo>&2 '*** BARF ON ME')
 
+ifndef BUILD_CC
+BUILD_CC = $(CC)
+endif
+
 ifneq ($(BUILD_CC),$(CC))
 cross-compiling := yes
 else