Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9
Home

[Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: paul@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 2 May 2003 10:30:37 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Paul Zastoupil wrote:
> CVS updated just before this email was written:
> Fri May  2 17:20:22 UTC 2003
> 
> Solaris needs -lm in two places.  I don't know how to detect that, maybe
> someone else does?  I had to add it to a generated configure so line
> numbers wont be much help.  But it was needed at the check for
> png_read_image:
> - LIBS="-lpng -lz $LIBS"
> + LIBS="-lpng -lz $LIBS -lm"
> 
> and at XOpenDisplay:
> -   LIBS="$X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
> +   LIBS="$X_LIBS -lX11 $X_EXTRA_LIBS $LIBS -lm"
> 
> If we could just shove it into $LIBS I think we'd be fine.

What does libm do?

I don't think we should just blindly add it to LIBS without at least an 
AC_CHECK_LIB for it.

jason




[Prev in Thread] Current Thread [Next in Thread]