Skip to content

Commit fe3fdf1

Browse files
committed
Use aarch64 instead of x86_64
1 parent 882296b commit fe3fdf1

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

src/hst_autocompile.sh

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -464,17 +464,31 @@ if [ "$PHP_B" = true ] ; then
464464
cd $BUILD_DIR_PHP
465465

466466
# Configure PHP
467-
./configure --prefix=/usr/local/hestia/php \
468-
--enable-fpm \
469-
--with-fpm-user=admin \
470-
--with-fpm-group=admin \
471-
--with-libdir=lib/x86_64-linux-gnu \
472-
--with-mysqli \
473-
--with-gettext \
474-
--with-curl \
475-
--with-zip \
476-
--with-gmp \
477-
--enable-mbstring
467+
if [ $BUILD_ARCH == 'amd64' ]; then
468+
./configure --prefix=/usr/local/hestia/php \
469+
--enable-fpm \
470+
--with-fpm-user=admin \
471+
--with-fpm-group=admin \
472+
--with-libdir=lib/x86_64-linux-gnu \
473+
--with-mysqli \
474+
--with-gettext \
475+
--with-curl \
476+
--with-zip \
477+
--with-gmp \
478+
--enable-mbstring
479+
else
480+
./configure --prefix=/usr/local/hestia/php \
481+
--enable-fpm \
482+
--with-fpm-user=admin \
483+
--with-fpm-group=admin \
484+
--with-libdir=lib/aarch64-linux-gnu \
485+
--with-mysqli \
486+
--with-gettext \
487+
--with-curl \
488+
--with-zip \
489+
--with-gmp \
490+
--enable-mbstring
491+
fi
478492
fi
479493

480494
cd $BUILD_DIR_PHP

0 commit comments

Comments
 (0)