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:27:14 -0700

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?



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



reply via email to

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