summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-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))