gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] RFC: libgps on Windows


From: Robert Norris
Subject: Re: [gpsd-dev] RFC: libgps on Windows
Date: Fri, 4 Mar 2016 00:56:08 +0000


>
> [...]
>> Some functionality is outside the scope of libgps or libgpsd but used in 
>> binaries, e.g. daemon()
> [...]
>
> Making daemonization support optional would be useful for another reason -
> on OSX any use of daemon() produces a deprecation warning, since the only
> supported way to run daemons on OSX is as children of launchd rather than
> as detached processes. So far Apple hasn't removed daemon() altogether,
> but it's not impossible.
>
> I'd suggest making this optional via an scons build option that maps to a
> [...]

I'm simply separating out daemon.c from libgps sources list
 and since it's not used by libgpsd either, it's put into a new sources list:

# Sources used not only by gpsd itself but also other production programs
misc_sources = [
    "daemon.c",
]

static_misclib = env.StaticLibrary(target="misc_static",
                           source=[env.StaticObject(s) for s in misc_sources])

Then only programs that potentially use it (rather than a system detected 
version) include this in their linking list, e.g.:

gpspipe = env.Program('gpspipe', ['gpspipe.c'],
                      LIBS=['gps_static', 'misc_static'], LIBPATH='.',
                      parse_flags=gpsflags)

Rather than the more extensive changes Fred is proposing.
                                          


reply via email to

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