Skip to content

Commit

Permalink
php: Fix build on x86_64
Browse files Browse the repository at this point in the history
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Nov 11, 2021
1 parent ec9a158 commit 5823133
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meta-oe/recipes-devtools/php/php_8.0.12.bb
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,14 @@ RCONFLICTS:${PN}-modphp = "${MODPHP_OLDPACKAGE}"
do_install:append:class-native() {
create_wrapper ${D}${bindir}/php \
PHP_PEAR_SYSCONF_DIR=${sysconfdir}/
}

if [ "$MACHINE_ARCH" == "x86" || "$MACHINE_ARCH" == "x86-64" ]; then
do_install:append:class-target() {
if [ "${MACHINE_ARCH}" = "x86" -o "${MACHINE_ARCH}" = "x86-64" ]; then
install -m 0755 ${WORKDIR}/build/ext/opcache/minilua ${D}${bindir}/
fi
}


# Fails to build with thumb-1 (qemuarm)
# | {standard input}: Assembler messages:
# | {standard input}:3719: Error: selected processor does not support Thumb mode `smull r0,r2,r9,r3'
Expand Down

0 comments on commit 5823133

Please sign in to comment.