Our cross compiler generates PIE by default but the host may not. Add oppropriate cmake flags to avoid build failures in the native variant on hosts like OpenSUSE 16.0.
Signed-off-by: Richard Purdie <[email protected]> --- meta/recipes-graphics/jpeg/libjpeg-turbo_3.2.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.2.0.bb b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.2.0.bb index ad9c640ce99..98e2f00a57a 100644 --- a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.2.0.bb +++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.2.0.bb @@ -26,6 +26,8 @@ export NASMENV = "--reproducible --debug-prefix-map=${WORKDIR}=${TARGET_DBGSRC_D # The binaries have RUNPATH=$libdir, which is redundant EXTRA_OECMAKE += "-DCMAKE_SKIP_INSTALL_RPATH=ON" +# Ensure the -fPIC options are used to avoid -native compile failures, e.g. on opensuse160 +EXTRA_OECMAKE += "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" # Add nasm-native dependency consistently for all build arches is hard EXTRA_OECMAKE:append:class-native = " -DWITH_SIMD=False"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240229): https://lists.openembedded.org/g/openembedded-core/message/240229 Mute This Topic: https://lists.openembedded.org/mt/120136826/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
