| Message ID | 20260706092313.518724-1-richard.purdie@linuxfoundation.org |
|---|---|
| State | New |
| Headers | show |
| Series | libjpeg-turbo: Add PIC flags | expand |
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"
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 <richard.purdie@linuxfoundation.org> --- meta/recipes-graphics/jpeg/libjpeg-turbo_3.2.0.bb | 2 ++ 1 file changed, 2 insertions(+)