[buildroot 0001069]: buildroot mipsel with soft-float does not compile libgcc with -msoft-float
bugs at busybox.net
bugs at busybox.net
Tue Oct 10 14:32:00 UTC 2006
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=1069
======================================================================
Reported By: spblinux
Assigned To: uClibc
======================================================================
Project: buildroot
Issue ID: 1069
Category: Architecture Specific
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 10-10-2006 07:32 PDT
Last Modified: 10-10-2006 07:32 PDT
======================================================================
Summary: buildroot mipsel with soft-float does not compile
libgcc with -msoft-float
Description:
Buildroot toolchain gcc-4.1.0/uClibc-0.9.28 mipsel
Compilation of asterisk-1.2.1 (with openwrt patches):
- asterisk works if compiled with
buildroot toolchain without soft-float option
- asterisk runs but does not work properly if compiled with
buildroot toolchain with -msoft-float
Issue: many embedded device do not have a fpu; so -msoft-float should be
used.
Solution: when gcc is compiled libgcc has to be compiled with
-msoft-float:
the buildroot patch
toolchain/gcc/4.1.0/100-uclibc-conf.patch
has to add
TARGET_LIBGCC2_CFLAGS= -fPIC -msoft-float
to gcc-4.1.0/gcc/config/t-linux-uclibc.
Credits go to David Wuertele
(http://gcc.gnu.org/ml/gcc/2003-08/msg00634.html)
who found the solution.
It would be nice if BR2_SOFT_FLOAT=y would automagically add
-msoft-float.
Christian Ostheimer
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
10-10-06 07:32 spblinux New Issue
10-10-06 07:32 spblinux Status new => assigned
10-10-06 07:32 spblinux Assigned To => uClibc
======================================================================
More information about the uClibc-cvs
mailing list