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=dc7cc9493a236fb343086cfbf10b55290ad11cbe;hb=2ceaa31f4137a5a9fb759338827f4b5d1d995772;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..dc7cc9493 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"