All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/2] gpsd: don't compile with gold
@ 2017-05-28 11:10 Max Krummenacher
  2017-05-28 11:10 ` [meta-oe][PATCH 2/2] gpsd: update to 3.16 Max Krummenacher
  2017-05-28 16:04 ` [meta-oe][PATCH 1/2] gpsd: don't compile with gold Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Max Krummenacher @ 2017-05-28 11:10 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Max Krummenacher

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>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb | 2 ++
 1 file changed, 2 insertions(+)

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
 export STAGING_INCDIR
 export STAGING_LIBDIR
 
+LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
+
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}"
 PACKAGECONFIG[bluez] = "bluez='true',bluez='false',${BLUEZ}"
 PACKAGECONFIG[qt] = "qt='yes',qt='no',qt4-x11-free"
-- 
2.12.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-28 19:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-28 11:10 [meta-oe][PATCH 1/2] gpsd: don't compile with gold Max Krummenacher
2017-05-28 11:10 ` [meta-oe][PATCH 2/2] gpsd: update to 3.16 Max Krummenacher
2017-05-28 16:04 ` [meta-oe][PATCH 1/2] gpsd: don't compile with gold Khem Raj
2017-05-28 18:11   ` Max Krummenacher
2017-05-28 19:11     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.