[Speex-dev] [PATCH] fix -elf2flt usage for bfin-uclinux

Mike Frysinger vapier at gentoo.org
Wed Jun 3 14:22:44 PDT 2009


There are multiple problems with the elf2flt usage in the configure script:
 - clobbers LDFLAGS
 - is used for all targets so breaks non-FLAT targets
 - is only used for Blackfin FLAT targets

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 configure.ac |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index cc30d99..3179521 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,8 +188,10 @@ fi])
 AC_ARG_ENABLE(blackfin-asm, [  --enable-blackfin-asm   Make use of Blackfin assembly optimizations],
 [if test "$enableval" = yes; then
   AC_DEFINE([BFIN_ASM], , [Make use of Blackfin assembly optimizations])
-  LDFLAGS="-Wl,-elf2flt=-s100000"
 fi])
+case $host_os in
+  uclinux) LDFLAGS="-Wl,-elf2flt=-s100000 $LDFLAGS";;
+esac
 
 AC_ARG_ENABLE(fixed-point-debug, [  --enable-fixed-point-debug  Debug fixed-point implementation],
 [if test "$enableval" = yes; then
-- 
1.6.3



More information about the Speex-dev mailing list