X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-ivi-common%2Frecipes-extended%2Fdlt-daemon%2Fdlt-daemon_2.11.1.bb;h=e6204c46f70cc8811fea4273e6b5cd77ef5b86e3;hb=refs%2Fchanges%2F93%2F9693%2F2;hp=183e2e923df55e1f831419e25358b585abe6c1f4;hpb=be9762b38b7b8608350ac391368cf88ce5906864;p=AGL%2Fmeta-agl.git diff --git a/meta-ivi-common/recipes-extended/dlt-daemon/dlt-daemon_2.11.1.bb b/meta-ivi-common/recipes-extended/dlt-daemon/dlt-daemon_2.11.1.bb index 183e2e923..e6204c46f 100644 --- a/meta-ivi-common/recipes-extended/dlt-daemon/dlt-daemon_2.11.1.bb +++ b/meta-ivi-common/recipes-extended/dlt-daemon/dlt-daemon_2.11.1.bb @@ -29,6 +29,15 @@ S = "${WORKDIR}/git" inherit gzipnative autotools gettext cmake systemd +# -fPIC is needed to prevent relocation errors when we compile gtest with +# Yocto security flags. See this issue for more details: +# +# https://github.com/google/googletest/issues/854 +# +# If that issue is fixed, we can probably remove the manual -fPIC flags here. +OECMAKE_C_FLAGS += "-fPIC" +OECMAKE_CXX_FLAGS += "-fPIC" + PACKAGES += "${PN}-systemd" SYSTEMD_PACKAGES = "${PN} ${PN}-systemd" SYSTEMD_SERVICE_${PN} = "dlt-system.service dlt.service"