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>
This commit is contained in:
parent
3f2113db87
commit
35b18ddfc4
1 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gpsd
|
PKG_NAME:=gpsd
|
||||||
PKG_VERSION:=3.21
|
PKG_VERSION:=3.21
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
|
PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
|
||||||
|
@ -95,6 +95,7 @@ define Package/libgps/description
|
||||||
endef
|
endef
|
||||||
|
|
||||||
SCONS_VARS += \
|
SCONS_VARS += \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) -L$(STAGING_DIR)/usr/lib" \
|
||||||
LINKFLAGS="$(TARGET_LDFLAGS)"
|
LINKFLAGS="$(TARGET_LDFLAGS)"
|
||||||
|
|
||||||
SCONS_OPTIONS += \
|
SCONS_OPTIONS += \
|
||||||
|
@ -116,7 +117,7 @@ SCONS_OPTIONS += \
|
||||||
implicit_link=no \
|
implicit_link=no \
|
||||||
chrpath=no \
|
chrpath=no \
|
||||||
manbuild=no \
|
manbuild=no \
|
||||||
sysroot="$(STAGING_DIR)" \
|
sysroot="$(TOOLCHAIN_DIR)" \
|
||||||
target="$(TARGET_CROSS:-=)"
|
target="$(TARGET_CROSS:-=)"
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
|
Loading…
Reference in a new issue