diff options
author | Max Krummenacher <max.oss.09@gmail.com> | 2017-05-28 13:10:39 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-06-12 06:56:23 +0200 |
commit | 0be5688fa0fc4a2517f3ae7ae92126a206620435 (patch) | |
tree | a1bf9bbd4d39e258629e4cd15ef57c2f90b165c4 /meta-oe/recipes-navigation/gpsd | |
parent | 41cf832cc9abd6f2293a6d612463a34a53a9a52a (diff) | |
download | meta-openembedded-0be5688fa0fc4a2517f3ae7ae92126a206620435.tar.gz |
gpsd: don't compile with gold
When linking with gold libgps and libgpsd error out with:
| ./libgpsd.so: error: undefined reference to 'atan2'
| ./libgpsd.so: error: undefined reference to 'pow'
| ./libgpsd.so: error: undefined reference to 'sqrt'
| ./libgpsd.so: error: undefined reference to 'sin'
| ./libgpsd.so: error: undefined reference to 'cos'
| collect2: error: ld returned 1 exit status
Using the bfd linker fixes the issue.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd')
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb index 4d00fea6d..fb02f9598 100644 --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb | |||
@@ -36,6 +36,8 @@ SYSTEMD_OESCONS = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'f | |||
36 | export STAGING_INCDIR | 36 | export STAGING_INCDIR |
37 | export STAGING_LIBDIR | 37 | export STAGING_LIBDIR |
38 | 38 | ||
39 | LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
40 | |||
39 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}" | 41 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}" |
40 | PACKAGECONFIG[bluez] = "bluez='true',bluez='false',${BLUEZ}" | 42 | PACKAGECONFIG[bluez] = "bluez='true',bluez='false',${BLUEZ}" |
41 | PACKAGECONFIG[qt] = "qt='yes',qt='no',qt4-x11-free" | 43 | PACKAGECONFIG[qt] = "qt='yes',qt='no',qt4-x11-free" |