diff --git a/build-static.sh b/build-static.sh index 95c9dc0aec..5f140d883a 100755 --- a/build-static.sh +++ b/build-static.sh @@ -91,9 +91,8 @@ if [ "${os}" = "linux" ] && { [[ "${arch}" =~ "aarch" ]] || [[ "${arch}" =~ "arm 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 + # 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"