summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2016-11-30 11:24:15 +0100
committerStefan Agner <stefan.agner@toradex.com>2017-01-10 16:17:07 -0800
commitf432724a562e67b56b67612e45f47f8fb655b5f1 (patch)
tree14f3b11185d21f836f1631c0cb0fc86a71d95026
parenta520368424c701fa79392173dc233c5873f37116 (diff)
matchbox-keyboard: fix linker error with gold
Taken from a proposed but not yet applied solution upstream. https://patchwork.openembedded.org/patch/103083/ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--recipes-sato/matchbox-keyboard/matchbox-keyboard_%.bbappend3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-sato/matchbox-keyboard/matchbox-keyboard_%.bbappend b/recipes-sato/matchbox-keyboard/matchbox-keyboard_%.bbappend
new file mode 100644
index 0000000..6467d8d
--- /dev/null
+++ b/recipes-sato/matchbox-keyboard/matchbox-keyboard_%.bbappend
@@ -0,0 +1,3 @@
+# Fails to build for ARM, at least with angstrom and the linaro toolchain
+# | error: matchbox-keyboard-image.o: requires unsupported dynamic reloc R_ARM_THM_MOVW_ABS_NC; recompile with -fPIC
+LDFLAGS += " ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"