aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-qt/qml-radio-plugin/qml-radio-plugin_0.2.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-qt/qml-radio-plugin/qml-radio-plugin_0.2.bb b/recipes-qt/qml-radio-plugin/qml-radio-plugin_0.2.bb
index fad6ed3be..f9e1c630a 100644
--- a/recipes-qt/qml-radio-plugin/qml-radio-plugin_0.2.bb
+++ b/recipes-qt/qml-radio-plugin/qml-radio-plugin_0.2.bb
@@ -22,6 +22,16 @@ EXTRA_OECONF = "--with-moc-dir=${STAGING_BINDIR_NATIVE}/qt5"
QML_LIBDIR = "${libdir}/qt5/qml"
+do_configure_append() {
+ # when building with "security_flags.inc", libtool thinks that
+ # "-pie" means we want an executable, and links with related C
+ # runtime objects. Work around this until libtool is fixed.
+ sed -i 's/".\+Scrt1.o/"/g' ${B}/*libtool
+ sed -i 's/ .\+Scrt1.o/ /g' ${B}/*libtool
+ sed -i 's/-lgcc / /g' ${B}/*libtool
+ sed -i 's/-lgcc"/"/g' ${B}/*libtool
+}
+
do_install_append() {
# Remove .la files for loadable module
rm -f ${D}/${QML_LIBDIR}/radio/*.la