[Flac-dev] -lm ordering

Josh Coalson xflac at yahoo.com
Wed Oct 31 20:41:03 PST 2001


--- Christian Weisgerber <naddy at mips.inka.de> wrote:
> In order to compile flac-1.0 with Compaq C on FreeBSD/alpha, I
> needed to move -lm to the end of the libraries, otherwise ccc would
> complain about unresolved symbols.  Patches below.
> 
>...
> 
> --- src/flac/Makefile.am.orig	Tue Aug 28 15:58:11 2001
> +++ src/flac/Makefile.am	Tue Aug 28 15:58:19 2001
> @@ -29,5 +29,4 @@
>  	encode.h \
>  	file.h
>  
> -flac_LDFLAGS = -lm
> -flac_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la
> +flac_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la -lm
[etc]

let me lateral to Matt, not being a proficient libtool
guy... is it OK to put the -lm in using _LDADD?  I have
this vague memory of having to do this some other way
for some reason.

Josh


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com




More information about the Flac-dev mailing list