From 4ed704b4b47b6ab5a21d439ec7ab84c4aea1433a Mon Sep 17 00:00:00 2001 From: David Thornley Date: Thu, 22 Sep 2016 13:11:25 +1000 Subject: [PATCH] gpsd: fix cross platform compilation In SConstruct the set of executables in the devenv variable should be adjusted to use the cross compile toolchain (as opposed to host's executables). Achieved by setting target option to the toolchain prefix which corrects compilation on macOS. Note, TARGET_CROSS has to have the hyphen stripped as SConstruct uses the target variable with an implied hyphen (env['target'] + '-' + toolname) Signed-off-by: David Thornley --- utils/gpsd/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/gpsd/Makefile b/utils/gpsd/Makefile index d6ea568d47..2f50e2d81b 100644 --- a/utils/gpsd/Makefile +++ b/utils/gpsd/Makefile @@ -103,7 +103,8 @@ SCONS_OPTIONS += \ nostrip=yes \ python=no \ implicit_link=no \ - chrpath=no + chrpath=no \ + target="$(TARGET_CROSS:-=)" define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include -- 2.30.2