gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH] Link with librt for pre-2.17 versions of glibc


From: Gary E. Miller
Subject: Re: [gpsd-dev] [PATCH] Link with librt for pre-2.17 versions of glibc
Date: Mon, 23 Mar 2015 15:41:13 -0700

Yo Beat!

Ah yes, it can do no harm, except some time.  Applied and pushed.

Until someone adds a glibc version check not worth the effort to tweak.

On Mon, 23 Mar 2015 23:34:03 +0100
Beat Bolli <address@hidden> wrote:

> On 23.03.15 23:27, Gary E. Miller wrote:
> > Yo Beat!
> > 
> > On Mon, 23 Mar 2015 23:20:11 +0100
> > Beat Bolli <address@hidden> wrote:
> > 
> >> As stated in the man page of clock_gettime(2).
> > 
> > Not on my Linux man page of clock_gettime():
> > 
> >        Link with -lrt (only for glibc versions before 2.17).
> > 
> > Do we have a way to test for glibc version?
> 
> Not easliy; the "ldd --version" output contains the glibc version.
> 
> But since we're detecting librt anyway, adding it to the default flags
> just increases link time a little bit.
> 
> 
> > On Mon, 23 Mar 2015 23:20:11 +0100
> > Beat Bolli <address@hidden> wrote:
> > 
> >> As stated in the man page of clock_gettime(2).
> >>
> >> This fixes the build on my Raspberry running Debian 7 with glibc
> >> 2.13.
> >>
> >> Signed-off-by: Beat Bolli <address@hidden>
> >> ---
> >>  SConstruct | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/SConstruct b/SConstruct
> >> index ba425e7..29ac977 100644
> >> --- a/SConstruct
> >> +++ b/SConstruct
> >> @@ -1043,7 +1043,7 @@ if qt_env:
> >>  # The libraries have dependencies on system libraries
> >>  # libdbus appears multiple times because the linker only does one
> >> pass. 
> >> -gpsflags = ["-lm"] + dbusflags
> >> +gpsflags = ["-lm"] + rtlibs + dbusflags
> >>  gpsdflags = usbflags + bluezflags + gpsflags
> >>  
> >>  gpslibs = ["-lgps"] + gpsflags
> > 
> > 
> > 
> > 
> > RGDS
> > GARY
> > ---------------------------------------------------------------------------
> > Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR
> > 97701 address@hidden  Tel:+1(541)382-8588
> > 
> 
> 




RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588



reply via email to

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