diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-10-31 23:26:03 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-10-31 23:26:03 +0000 |
commit | f72338a387fe392186099c20bdd79a904965d799 (patch) | |
tree | b6d1af405e456ec5b62be1216e039ada64f432b7 /Rules.mak | |
parent | fff9c70e33036a80875dc25d359ef22c2c0a524c (diff) |
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.mak | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |