From 6258b51cdf15aa161a9930b23ae85341ca182e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 20 Jun 2025 15:58:39 +0200 Subject: [PATCH 1/3] chore: remove SPC_PHP_DEFAULT_OPTIMIZE_CFLAGS which doesn't exist anymore --- build-static.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/build-static.sh b/build-static.sh index 95c9dc0aec..3fd895b232 100755 --- a/build-static.sh +++ b/build-static.sh @@ -90,10 +90,6 @@ fi if [ "${os}" = "linux" ] && { [[ "${arch}" =~ "aarch" ]] || [[ "${arch}" =~ "arm" ]]; }; then fpic="-fPIC" fpie="-fPIE" - - if [ -z "${DEBUG_SYMBOLS}" ]; then - export SPC_PHP_DEFAULT_OPTIMIZE_CFLAGS="-g -fstack-protector-strong -fPIC -fPIE -Os -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" - fi else fpic="-fpic" fpie="-fpie" From 04ec7a47efd31321e82c9f4aaf306851ecc712d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 20 Jun 2025 16:21:08 +0200 Subject: [PATCH 2/3] dont use pre-built packages on ARM --- build-static.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-static.sh b/build-static.sh index 3fd895b232..7e7102f1d6 100755 --- a/build-static.sh +++ b/build-static.sh @@ -90,6 +90,9 @@ fi if [ "${os}" = "linux" ] && { [[ "${arch}" =~ "aarch" ]] || [[ "${arch}" =~ "arm" ]]; }; then fpic="-fPIC" fpie="-fPIE" + + # FIXME: temporary workaround because pre-built poackages aren't compiled wiht -fPIC yet + SPC_OPT_DOWNLOAD_ARGS="--ignore-cache-sources=php-src --retry 5" else fpic="-fpic" fpie="-fpie" From af9a80375a723e177ba26fd1cf9cbc802cc17177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 20 Jun 2025 16:29:43 +0200 Subject: [PATCH 3/3] CS --- build-static.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-static.sh b/build-static.sh index 7e7102f1d6..5f140d883a 100755 --- a/build-static.sh +++ b/build-static.sh @@ -92,7 +92,7 @@ if [ "${os}" = "linux" ] && { [[ "${arch}" =~ "aarch" ]] || [[ "${arch}" =~ "arm fpie="-fPIE" # FIXME: temporary workaround because pre-built poackages aren't compiled wiht -fPIC yet - SPC_OPT_DOWNLOAD_ARGS="--ignore-cache-sources=php-src --retry 5" + SPC_OPT_DOWNLOAD_ARGS="--ignore-cache-sources=php-src --retry 5" else fpic="-fpic" fpie="-fpie"