File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ install_deps() {
2121 export CROSS_COMPILE=" /usr/bin/${arch} -alpine-linux-musl-"
2222
2323 apk add curl git autoconf bison re2c pkgconf zlib-dev zstd-dev openssl-libs-static openssl-dev zlib-static zlib-dev
24+
25+ # Build curl
26+ curl -sSL https://github.com/curl/curl/releases/download/curl-8_0_0/curl-8.0.0.tar.gz | tar -xzf -
27+ cd curl-8.0.0
28+ ./configure --disable-shared --with-ssl --without-libidn2
29+ make -j8
30+ make install
31+ cd ..
2432}
2533
2634install_dev_deps () {
Original file line number Diff line number Diff line change @@ -32,14 +32,6 @@ curl -sSL "https://github.com/php/php-src/archive/refs/tags/php-$PHP_VERSION.tar
3232test -d build && rm -fr " $_ "
3333mv " php-src-php-$PHP_VERSION " build && cd " $_ "
3434
35- # Build curl
36- curl -sSL https://github.com/curl/curl/releases/download/curl-8_0_0/curl-8.0.0.tar.gz | tar -xzf -
37- cd curl-8.0.0
38- ./configure --disable-shared --with-ssl --without-libidn2
39- make -j8
40- make install
41- cd ..
42-
4335# Build extra extensions
4436cd ext
4537
Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ set -e
1212install_deps () {
1313 sudo apt-get update -y
1414 sudo apt-get install -y curl build-essential autoconf automake bison re2c libzstd-dev pkg-config git libssl-dev zlib1g-dev libonig-dev cmake
15+
16+ # Build curl
17+ curl -sSL https://github.com/curl/curl/releases/download/curl-8_0_0/curl-8.0.0.tar.gz | tar -xzf -
18+ cd curl-8.0.0
19+ ./configure --disable-shared --with-ssl --without-libidn2
20+ make -j8
21+ sudo make install
22+ cd ..
1523}
1624
1725install_dev_deps () {
4250 --enable-zts --enable-parallel \
4351 --with-openssl --with-zlib \
4452 --enable-filter \
53+ --with-curl \
4554 --enable-mbstring \
4655 " ${BUILD_EXTRA[@]} "
4756
Original file line number Diff line number Diff line change 99set -e
1010install_deps () {
1111 brew upgrade
12- brew install curl autoconf automake bison re2c zstd git openssl zlib cmake libcurl
12+ brew install curl autoconf automake bison re2c zstd git openssl zlib cmake
13+
14+ OPENSSL_PREFIX=" $( brew --prefix openssl) "
15+ OPENSSL_CFLAGS=" -I${OPENSSL_PREFIX} /include"
16+ OPENSSL_LIBS=" -L${OPENSSL_PREFIX} /lib -lcrypto -lssl"
17+ export OPENSSL_PREFIX OPENSSL_CFLAGS OPENSSL_LIBS
18+ export PATH=" ${OPENSSL_PREFIX} /bin:${PATH} "
19+ export LDFLAGS=" -L${OPENSSL_PREFIX} @1.1/lib"
20+ export CPPFLAGS=" -I${OPENSSL_PREFIX} /include"
21+ export PKG_CONFIG_PATH=" ${OPENSSL_PREFIX} /lib/pkgconfig"
1322}
1423
1524install_dev_deps () {
@@ -19,14 +28,6 @@ install_dev_deps() {
1928export -f install_deps install_dev_deps
2029. ./build-bash-base.sh " $@ "
2130
22- if which brew; then
23- brew link openssl@1.1
24- OPENSSL_PREFIX=" $( brew --prefix openssl@1.1) "
25- OPENSSL_CFLAGS=" -I${OPENSSL_PREFIX} /include"
26- OPENSSL_LIBS=" -L${OPENSSL_PREFIX} /lib -lcrypto -lssl"
27- export OPENSSL_PREFIX OPENSSL_CFLAGS OPENSSL_LIBS
28- fi
29-
3031hide_dynamic_libs () {
3132 ! which brew && return
3233 for lib in " $@ " ; do
You can’t perform that action at this time.
0 commit comments