Fix a cross compile issue.

This commit is contained in:
Manuel Novoa III 2004-09-03 04:12:31 +00:00
parent 21dbe3a32c
commit 9ea2c8a65d

View File

@ -9,6 +9,11 @@ LTRACE_DIR=$(BUILD_DIR)/ltrace-0.3.35
LTRACE_BINARY=ltrace LTRACE_BINARY=ltrace
LTRACE_TARGET_BINARY=usr/bin/ltrace LTRACE_TARGET_BINARY=usr/bin/ltrace
LTRACE_ARCH:=$(ARCH)
ifeq ("$(strip $(ARCH))","armeb")
LTRACE_ARCH:=arm
endif
$(DL_DIR)/$(LTRACE_SOURCE): $(DL_DIR)/$(LTRACE_SOURCE):
$(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE) $(WGET) -P $(DL_DIR) $(LTRACE_SITE)/$(LTRACE_SOURCE)
@ -29,10 +34,12 @@ $(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source
touch $(LTRACE_DIR)/.configured; touch $(LTRACE_DIR)/.configured;
$(LTRACE_DIR)/$(LTRACE_BINARY): $(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) $(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 rm -Rf $(TARGET_DIR)/usr/man
ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY) ltrace: uclibc $(TARGET_DIR)/$(LTRACE_TARGET_BINARY)