Browse Source

gpsd: Make sure that LDFLAGS are passed to scons

In newer Poky the LDFLAGS are not passed through the $CC variable
anymore and we need to make sure scons is picking them up. Take an
old Gentoo patch for it.
hfreyther/master-poky
Holger Hans Peter Freyther 4 years ago
parent
commit
49153b2904
  1. 17
      recipes-extra/gpsd/gpsd/gpsd-3.3-ldflags.patch
  2. 3
      recipes-extra/gpsd/gpsd_3.10.bb

17
recipes-extra/gpsd/gpsd/gpsd-3.3-ldflags.patch

@ -0,0 +1,17 @@
https://bugs.gentoo.org/391299
split up linking flags into multiple arguments
Index: gpsd-3.10/SConstruct
===================================================================
--- gpsd-3.10.orig/SConstruct 2017-03-28 23:47:02.815665786 +0200
+++ gpsd-3.10/SConstruct 2017-03-28 23:47:40.463666285 +0200
@@ -250,7 +250,7 @@
env.Replace(**{j: os.getenv(i)})
for flag in ["LDFLAGS", "LINKFLAGS", "SHLINKFLAGS", "CPPFLAGS"]:
if os.environ.has_key(flag):
- env.MergeFlags({flag : [os.getenv(flag)]})
+ env.MergeFlags({flag : Split(os.getenv(flag))})
# Keep scan-build options in the environment

3
recipes-extra/gpsd/gpsd_3.10.bb

@ -11,6 +11,7 @@ PR = "r3.19"
SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \
file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \
file://gpsd-3.3-ldflags.patch \
file://no-rpath-please.patch \
file://gpsd-tsip-pps.patch \
file://leave-argv-untouched.patch \
@ -33,6 +34,8 @@ INITSCRIPT_PARAMS = "defaults 35"
export STAGING_INCDIR
export STAGING_LIBDIR
export LINKFLAGS="${TARGET_LDFLAGS}"
export SHLINKFLAGS="${TARGET_LDFLAGS}"
EXTRA_OESCONS = " \
sysroot=${STAGING_DIR_TARGET} \

Loading…
Cancel
Save