diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2015-11-16 21:56:00 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-01 21:32:08 +0000 |
commit | a62fa2327f220ca2defc9d0f876f549a9e82fa0d (patch) | |
tree | c3f0986b78700bab338d13b20f3d703a2a1eca28 /meta | |
parent | 9b075cafa34faa23f01e9a89929c05aaee4c5341 (diff) | |
download | poky-a62fa2327f220ca2defc9d0f876f549a9e82fa0d.tar.gz |
directfb.inc: force bfd linker for armv7a
Workaround for linker errors seen with armv7a + gold:
| ../arm-rdk-linux-gnueabi-libtool --tag=CC --mode=link arm-rdk-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mtune=cortex-a15 --sysroot=.../build/tmp/sysroots/eos -I.../build/tmp/sysroots/eos/usr/include/freetype2 -I.../build/tmp/sysroots/eos/usr/include/libpng16 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -Werror-implicit-function-declaration -O3 -g2 -ffast-math -pipe -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o directfb-csource directfb-csource.o -lpng16 -ldl -lrt -lpthread
| arm-rdk-linux-gnueabi-libtool: link: arm-rdk-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mtune=cortex-a15 --sysroot=.../build/tmp/sysroots/eos -I.../build/tmp/sysroots/eos/usr/include/freetype2 -I.../build/tmp/sysroots/eos/usr/include/libpng16 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -Werror-implicit-function-declaration -O3 -g2 -ffast-math -pipe -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o directfb-csource directfb-csource.o .../build/tmp/sysroots/eos/usr/lib/libpng16.so -lz -lm -ldl -lrt -lpthread
| .../build/tmp/sysroots/x86_64-linux/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/5.2.0/ld: error: directfb-csource.o: requires unsupported dynamic reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
| collect2: error: ld returned 1 exit status
(From OE-Core rev: c075d6e514b0a4511007844baf96ad44d7513399)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/directfb/directfb.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-graphics/directfb/directfb.inc b/meta/recipes-graphics/directfb/directfb.inc index 446aaeadb4..cbd4014832 100644 --- a/meta/recipes-graphics/directfb/directfb.inc +++ b/meta/recipes-graphics/directfb/directfb.inc | |||
@@ -22,6 +22,9 @@ S = "${WORKDIR}/DirectFB-${PV}" | |||
22 | 22 | ||
23 | LDFLAGS_append =" -lts -lm" | 23 | LDFLAGS_append =" -lts -lm" |
24 | 24 | ||
25 | # Workaround for linking issues seen with armv7a + gold | ||
26 | LDFLAGS_append_armv7a = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
27 | |||
25 | BINCONFIG = "${bindir}/directfb-config" | 28 | BINCONFIG = "${bindir}/directfb-config" |
26 | 29 | ||
27 | inherit autotools binconfig-disabled pkgconfig | 30 | inherit autotools binconfig-disabled pkgconfig |