[OE-core] [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold
Carlos Alberto Lopez Perez
clopez at igalia.com
Fri Sep 11 12:49:43 UTC 2015
* 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 at 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
More information about the Openembedded-core
mailing list