Browse Source

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 <david.thornley@touchstargroup.com>
lilik-openwrt-22.03
David Thornley 8 years ago
parent
commit
4ed704b4b4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      utils/gpsd/Makefile

+ 2
- 1
utils/gpsd/Makefile View File

@ -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


Loading…
Cancel
Save