summaryrefslogtreecommitdiffstats
path: root/Rules.mak
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-10-31 23:26:03 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-10-31 23:26:03 +0000
commitf72338a387fe392186099c20bdd79a904965d799 (patch)
treeb6d1af405e456ec5b62be1216e039ada64f432b7 /Rules.mak
parentfff9c70e33036a80875dc25d359ef22c2c0a524c (diff)
downloaduClibc-alpine-f72338a387fe392186099c20bdd79a904965d799.tar.bz2
uClibc-alpine-f72338a387fe392186099c20bdd79a904965d799.tar.xz
Some more soft float fixes... for arm in particular (libfloat).
Remove the ADD_LIBGCC_FUNCTIONS option and do things the right way. Either we have a shared libgcc available, or the libgcc routines aren't PIC and don't belong in the shared libc anyway.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index c02d48823..aa2fe37fa 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -226,9 +226,14 @@ ifeq ($(HAVE_SHARED),y)
BUILD_DYNAMIC_LINKER:=/lib/$(strip $(subst ",, $(notdir $(SYSTEM_LDSO))))
endif
endif
-ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
+
+LDADD_LIBFLOAT=
+ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
CFLAGS += $(call check_gcc,-msoft-float,)
#LDFLAGS+= -Wa,-mno-fpu
+ifeq ($(strip $(TARGET_ARCH)),arm)
+ LDADD_LIBFLOAT=-lfloat
+endif
endif
CFLAGS_NOPIC:=$(CFLAGS)