summaryrefslogtreecommitdiff
path: root/make/libfloat.mk
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2004-01-15 11:01:37 +0000
committerManuel Novoa III <mjn3@codepoet.org>2004-01-15 11:01:37 +0000
commit3800e330165e575d68d17ec889cfb4b97d78e905 (patch)
treee47cb83e5bfb9addf3b77ff2e9a2cafd02b3fcd4 /make/libfloat.mk
parent0f92b0198868ac15fa6d3ece5acabe2d8d427072 (diff)
Minor cleanup.
Diffstat (limited to 'make/libfloat.mk')
-rw-r--r--make/libfloat.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/make/libfloat.mk b/make/libfloat.mk
index 97e1be1b5..dffef3de5 100644
--- a/make/libfloat.mk
+++ b/make/libfloat.mk
@@ -10,7 +10,7 @@ LIBFLOAT_CAT:=zcat
LIBFLOAT_DIR:=$(BUILD_DIR)/libfloat
LIBFLOAT_TARGET=
-ifneq ("$(strip $(TARGET_SOFT_FLOAT))","")
+ifeq ($(strip $(SOFT_FLOAT)),true)
ifeq ("$(strip $(ARCH))","arm")
LIBFLOAT_TARGET+=$(STAGING_DIR)/lib/libfloat.so
endif
@@ -32,8 +32,7 @@ $(LIBFLOAT_DIR)/.unpacked: $(DL_DIR)/$(LIBFLOAT_SOURCE) $(DL_DIR)/$(LIBFLOAT_PAT
$(SOURCE_DIR)/patch-kernel.sh $(LIBFLOAT_DIR) $(SOURCE_DIR) libfloat.patch
touch $(LIBFLOAT_DIR)/.unpacked
-$(LIBFLOAT_DIR)/libfloat.so.1: $(LIBFLOAT_DIR)/.unpacked \
- $(STAGING_DIR)/bin/$(ARCH)-linux-gcc
+$(LIBFLOAT_DIR)/libfloat.so.1: $(LIBFLOAT_DIR)/.unpacked $(TARGET_CC)
$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld -C $(LIBFLOAT_DIR)
$(STAGING_DIR)/lib/libfloat.so: $(LIBFLOAT_DIR)/libfloat.so.1