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: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9
From: "Paul Zastoupil" <paul@xxxxxxxxxxxxx>
Date: Fri, 2 May 2003 10:41:39 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, May 02, 2003 at 10:30:37AM -0700, Jason Short wrote:
> 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?

Its a math library for solaris (#include math.h).  I think its pow() thats 
needed in this
case.
> 
> I don't think we should just blindly add it to LIBS without at least an 
> AC_CHECK_LIB for it.

Of course not.  That was just a kludge so I could get past that step.

> 
> jason
> 
> 

-- 
Paul Zastoupil



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