From 04cd19d0a72b0cec0265e3afa4fd7066011ce602 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sat, 6 Feb 2021 20:40:01 +0100 Subject: [PATCH] Fix source of libmpdec Test: decimal --- install-php-extensions | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index cc0a7ef..54b3f0d 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1536,12 +1536,14 @@ installRemoteModule() { decimal) case "$DISTRO" in alpine) - installRemoteModule_src="$(getPackageSource https://codeload.github.com/bematech/libmpdec/tar.gz/master)" - cd -- "$installRemoteModule_src" - ./configure CFLAGS='-w' - make -j$(getProcessorCount) - make install - cd - >/dev/null + if ! test -f /usr/local/lib/libmpdec.so; then + installRemoteModule_src="$(getPackageSource https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.5.1.tar.gz)" + cd -- "$installRemoteModule_src" + ./configure --disable-cxx + make -j$(getProcessorCount) + make install + cd - >/dev/null + fi ;; esac ;;