diff mbox series

[meta-multimedia] x265: Fix build on x86

Message ID 20250108054428.3149282-1-raj.khem@gmail.com
State New
Headers show
Series [meta-multimedia] x265: Fix build on x86 | expand

Commit Message

Khem Raj Jan. 8, 2025, 5:44 a.m. UTC
Disable asm on x86

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-multimedia/recipes-multimedia/x265/x265_4.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb b/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb
index 268ccec167..23d6342d26 100644
--- a/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb
+++ b/meta-multimedia/recipes-multimedia/x265/x265_4.1.bb
@@ -15,9 +15,9 @@  S = "${WORKDIR}/x265_${PV}/source"
 inherit lib_package cmake pkgconfig
 
 EXTRA_OECMAKE += "-DENABLE_PIC=ON -DENABLE_SHARED=ON -DENABLE_CLI=ON"
-
+EXTRA_OECMAKE:append:x86 = " -DENABLE_ASSEMBLY=OFF"
 do_generate_toolchain_file:append() {
-   echo "set(CMAKE_ASM_NASM_FLAGS --debug-prefix-map ${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR})" >> ${WORKDIR}/toolchain.cmake
+   echo "set(CMAKE_ASM_NASM_FLAGS -DPIC --debug-prefix-map ${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR})" >> ${WORKDIR}/toolchain.cmake
 }
 
 PACKAGECONFIG ?= "hdr10plus 10bit"