[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]
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
|
|