summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-16 20:14:45 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-16 20:14:45 +0000
commit0ad1b4fdd341cae5283b21257711e1ab71097b8c (patch)
tree4f388c27fedd2d39e1bc236f702a322c6b19a788 /Rules.mak
parent51116eca39a0d9b78919fd85b7ae9d24a4efbc96 (diff)
Fix up a few little problems
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