From: Takashi Iwai Subject: Re: alsa-lib-1.0.18 doesn't build with option '--with-softfloat' Date: Wed, 07 Jan 2009 12:13:22 +0100 Message-ID: References: <20090107110123.GA16772@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (ns2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D3EBE1037F5 for ; Wed, 7 Jan 2009 12:13:22 +0100 (CET) In-Reply-To: <20090107110123.GA16772@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Alsa-devel@alsa-project.org, Cliff Cai List-Id: alsa-devel@alsa-project.org At Wed, 7 Jan 2009 11:01:25 +0000, Mark Brown wrote: > > On Wed, Jan 07, 2009 at 10:18:42AM +0100, Takashi Iwai wrote: > > pcm_ladspa.c can't be build without libm, I guess. This should be > > excluded with the softfload option. Ditto for alisp. > > > How about the patch below? > > OpenEmbedded has been carrying the following patch for a while, > cooindcidentally I was actually looking at their ALSA packaging last > night and thinking about pushing this to you - it forces liking with > libm which is more important when using softfloat. Well, when softfloat option is chosen, basically alsa-lib should be built without floating operations, thus libm shouldn't be needed. (So in that sense, the option is named wrongly...) Takashi > It was written by Henning Heinold > > Index: alsa-lib-1.0.15/configure.in > =================================================================== > --- alsa-lib-1.0.15.orig/configure.in 2007-10-15 10:45:26.000000000 +0200 > +++ alsa-lib-1.0.15/configure.in 2008-07-19 15:51:34.177119589 +0200 > @@ -191,9 +191,9 @@ > AC_MSG_RESULT(no) > fi > > -ALSA_DEPLIBS="" > -if test "$softfloat" != "yes"; then > - ALSA_DEPLIBS="-lm" > +ALSA_DEPLIBS="-lm" > +if test "$softfloat" = "yes"; then > + AC_CHECK_LIB([m], [floor], , [ALSA_DEPLIBS=""]) > fi > > dnl Check for libdl > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >