gpsd: fix compilation with x86 glibc 15799/head
authorNick Hainke <vincent@systemli.org>
Fri, 4 Jun 2021 13:30:02 +0000 (15:30 +0200)
committerNick Hainke <vincent@systemli.org>
Mon, 7 Jun 2021 20:18:54 +0000 (22:18 +0200)
commit4a28b7fad3414e949cf3283356b06ee9fef841f5
tree4a74f2da52be353aea16800e1c1cf9881a50f277
parent74a63743c74850b353236eca51cb87a3760ad33d
gpsd: fix compilation with x86 glibc

The sysroot has to point to the toolchain directory. The directory
includes libraries like libm. However, the STAGING_DIR needs to be
added to the CFLAGS.

Fixes #15773

[As suggested by jow]

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 35b18ddfc4d5a9e065bb0730523ad338229398de)
utils/gpsd/Makefile