The same actually goes for @THREADLIB@ and @OSX_LIBS@ :-)

It might make sense though to add all these to Libs.private, as I
believe that's what pkg-config uses for static linking?

Cheers,
Andre'

On Tue, 2010-11-02 at 09:59 +0000, Andre Draszik wrote:
> Hi Sven,
> 
> No, this should be implicit, i.e. libdirectfb.so should have libm.so in
> its DT_NEEDED section.
> 
> Cheers,
> Andre'
> 
> 
> On Tue, 2010-11-02 at 10:11 +0100, Sven Neumann wrote:
> > Hi,
> > 
> > since the addition of font rotation in src/media/idirectfbfont.c
> > DirectFB uses sqrt() and thus needs to link with -lm. Below patch
> > changes the pkg-config file accordingly. Should I push this to the git
> > repository?
> > 
> > 
> > diff --git a/directfb.pc.in b/directfb.pc.in
> > index 7e53453..af6f907 100644
> > --- a/directfb.pc.in
> > +++ b/directfb.pc.in
> > @@ -7,6 +7,6 @@ Name: DirectFB
> >  Description: Graphics and windowing library for the Linux frame buffer
> > device
> >  Version: @VERSION@
> >  Requires: @DEP_VOODOO@ fusion direct
> > -Libs: -L${libdir} -ldirectfb @THREADLIB@ @OSX_LIBS@
> > +Libs: -L${libdir} -ldirectfb @THREADLIB@ @OSX_LIBS@ -lm
> >  Libs.private: -L${libdir} @DYNLIB@ @ZLIB_LIBS@
> >  Cflags: @THREADFLAGS@ -...@includedir@
> > 
> > 
> > Sven
> > 
> > 
> > 
> > 
> > _______________________________________________
> > directfb-dev mailing list
> > directfb-dev@directfb.org
> > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> 


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to