about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index d64f35254b..edbf8a5b81 100644
--- a/Makerules
+++ b/Makerules
@@ -677,13 +677,16 @@ mv -f $@.new $@
 endef
 endif
 
-ifeq (no,$(cross-compiling))
 ifeq (yes,$(build-shared))
+ifeq (no,$(cross-compiling))
 symbolic-link-prog := $(common-objpfx)elf/sln
 symbolic-link-list := $(common-objpfx)elf/symlink.list
 define make-shlib-link
 echo $(<F) $@ >> $(symbolic-link-list)
 endef
+else # cross-compiling
+# We need a definition that can be used by elf/Makefile's install rules.
+symbolic-link-prog = $(LN_S)
 endif
 endif
 ifndef make-shlib-link