summaryrefslogtreecommitdiff
path: root/make/ltrace.mk
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-09-03 04:12:31 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-09-03 04:12:31 +0000
commit9ea2c8a65de1da0ba23154d250773f221474c083 (patch)
treeaae61a87e6dc40fca9eded1d42ac314efe7bca1a /make/ltrace.mk
parent21dbe3a32c1269247502e83d4c2196efde88056c (diff)
Fix a cross compile issue.
Diffstat (limited to 'make/ltrace.mk')
-rw-r--r--make/ltrace.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/make/ltrace.mk b/make/ltrace.mk
index 2170e3306..ab32fc7f4 100644
--- a/make/ltrace.mk
+++ b/make/ltrace.mk
@@ -9,6 +9,11 @@ LTRACE_DIR=$(BUILD_DIR)/ltrace-0.3.35
LTRACE_BINARY=ltrace
LTRACE_TARGET_BINARY=usr/bin/ltrace
+LTRACE_ARCH:=$(ARCH)
+ifeq ("$(strip $(ARCH))","armeb")
+LTRACE_ARCH:=arm
+endif
+
$(DL_DIR)/$(LTRACE_SOURCE):
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
@@ -29,10 +34,12 @@ $(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source
touch $(LTRACE_DIR)/.configured;
$(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured
- $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld -C $(LTRACE_DIR)
+ $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld ARCH=$(LTRACE_ARCH) \
+ -C $(LTRACE_DIR)
$(TARGET_DIR)/$(LTRACE_TARGET_BINARY): $(LTRACE_DIR)/$(LTRACE_BINARY)
- $(MAKE) DESTDIR=$(TARGET_DIR) -C $(LTRACE_DIR) install
+ $(MAKE) DESTDIR=$(TARGET_DIR) ARCH=$(LTRACE_ARCH) \
+ -C $(LTRACE_DIR) install
rm -Rf $(TARGET_DIR)/usr/man
ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)