Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold
@ 2015-09-11 12:49 Carlos Alberto Lopez Perez
  2015-09-11 14:51 ` Phil Blundell
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Alberto Lopez Perez @ 2015-09-11 12:49 UTC (permalink / raw)
  To: openembedded-core

  * When ld-is-gold is enabled in DISTRO_FEATURES, matchbox-keyboard
    will fail to build with this error:

    ld: error: matchbox-keyboard-image.o: requires unsupported dynamic
               reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
---
 meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
index 0d321d3..cde1c49 100644
--- a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
+++ b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
@@ -25,6 +25,8 @@ inherit autotools pkgconfig gettext gtk-immodules-cache distro_features_check
 # The libxft, libfakekey and matchbox-panel-2 requires x11 in DISTRO_FEATURES
 REQUIRED_DISTRO_FEATURES = "x11"
 
+CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fPIC ', '', d)}"
+
 EXTRA_OECONF = "--disable-cairo --enable-gtk-im --enable-applet"
 
 PACKAGES += "${PN}-im ${PN}-applet"
-- 
2.1.4



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

end of thread, other threads:[~2016-01-17 11:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11 12:49 [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold Carlos Alberto Lopez Perez
2015-09-11 14:51 ` Phil Blundell
2015-09-11 16:46   ` Carlos Alberto Lopez Perez
2015-09-14  7:24   ` Khem Raj
2015-09-14 23:01     ` Carlos Alberto Lopez Perez
2016-01-14 18:27       ` Khem Raj
2016-01-14 21:22         ` Phil Blundell
2016-01-17 11:15           ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox