OSDN Git Service

Move the soft float check
authorEric Andersen <andersen@codepoet.org>
Fri, 13 Dec 2002 04:40:10 +0000 (04:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 13 Dec 2002 04:40:10 +0000 (04:40 -0000)
Rules.mak

index 7ad1da4..ec8ed7a 100644 (file)
--- 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))