[oe] [PATCH 1/5] fltk: add -fPIC to compile flags

Andreas Müller schnitzeltony at gmail.com
Thu Dec 14 10:09:25 UTC 2017


Building yoshimi failes otherwise with many errors as:
| error: <sysroot>/usr/lib/libfltk.a(Fl_File_Browser.cxx.o): requires unsupported dynamic reloc R_ARM_THM_MOVW_ABS_NC; recompile with -fPIC

Signed-off-by: Andreas Müller <schnitzeltony at gmail.com>
---
 meta-oe/recipes-support/fltk/fltk.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-oe/recipes-support/fltk/fltk.bb b/meta-oe/recipes-support/fltk/fltk.bb
index 542fd66..be76062 100644
--- a/meta-oe/recipes-support/fltk/fltk.bb
+++ b/meta-oe/recipes-support/fltk/fltk.bb
@@ -14,6 +14,10 @@ EXTRA_OECMAKE = " \
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
 
+# for sake of other packages linking against fltk libs
+CFLAGS += "-fPIC"
+CXXFLAGS += "-fPIC"
+
 PACKAGECONFIG[examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF,"
 PACKAGECONFIG[opengl] = "-DOPTION_USE_GL=ON,-DOPTION_USE_GL=OFF,virtual/libgl"
 PACKAGECONFIG[xinerama] = "-DOPTION_USE_XINERAMA=ON,-DOPTION_USE_XINERAMA=OFF,libxinerama"
-- 
2.9.5




More information about the Openembedded-devel mailing list