summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-12-13 04:40:10 +0000
committerEric Andersen <andersen@codepoet.org>2002-12-13 04:40:10 +0000
commit7993e170de6c401c6ce00b26411f8f55944cdf54 (patch)
tree0f8847f86f27d41f21abfb2df9252c4f28f36ef9
parent26ac73a7de1ba347046f7d23400439e682e79ed5 (diff)
Move the soft float check
-rw-r--r--Rules.mak8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rules.mak b/Rules.mak
index 7ad1da419..ec8ed7a84 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -200,7 +200,11 @@ ifeq ($(HAVE_SHARED),y)
BUILD_DYNAMIC_LINKER:=/lib/$(strip $(subst ",, $(notdir $(SYSTEM_LDSO))))
endif
endif
+ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
+ CFLAGS += $(call check_gcc,-msoft-float,)
+endif
+CFLAGS_NOPIC:=$(CFLAGS)
ifeq ($(DOPIC),y)
ifeq ($(strip $(TARGET_ARCH)),cris)
CFLAGS += -fpic -mlinux
@@ -209,10 +213,6 @@ else
endif
endif
-ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
- CFLAGS += $(call check_gcc,-msoft-float,)
-endif
-
LIBGCC_CFLAGS ?= $(CFLAGS) $(CPU_CFLAGS-y)
LIBGCC:=$(shell $(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)
LIBGCC_DIR:=$(dir $(LIBGCC))