summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index 1b065a1a5..e26a75a66 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -70,16 +70,19 @@ endif
LDSO_PRESENT=$(strip $(shell cd $(TOPDIR)/ldso/d-link; ls -d $(TARGET_ARCH) 2>/dev/null))
+# NOTE: This may need to be modified for your system
ifeq ($(NATIVE_ARCH), $(TARGET_ARCH))
- SYSTEM_LDSO=$(shell ldd `which $(CC)` | sed -ne /ld/p | sed -e s/\ =.*//g)
+ SYSTEM_LDSO=$(strip $(shell ldd `which $(CC)` | sed -ne /ld/p | sed -e s/\ =.*//g))
else
SYSTEM_LDSO=/lib/ld-linux.so.2
endif
ifeq ($(LDSO_PRESENT), $(TARGET_ARCH))
LDSO=$(TOPDIR)lib/$(UCLIBC_LDSO)
+ DYNAMIC_LINKER=/lib/$(UCLIBC_LDSO)
else
LDSO=$(SYSTEM_LDSO)
+ DYNAMIC_LINKER=$(SYSTEM_LDSO)
endif