gpsd: fix compilation with x86 glibc 15777/head
authorNick Hainke <vincent@systemli.org>
Fri, 4 Jun 2021 13:30:02 +0000 (15:30 +0200)
committerNick Hainke <vincent@systemli.org>
Fri, 4 Jun 2021 16:21:43 +0000 (18:21 +0200)
commit35b18ddfc4d5a9e065bb0730523ad338229398de
treed9b2b491cf3c7ce6a4e1ae58f4e47688984f79e7
parent3f2113db87efe57ecdaa8c07fdb4cdd2503987d1
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>
utils/gpsd/Makefile