Skip to content

Commit 1e92b64

Browse files
committed
do not use prebuilt sources for glibc build
1 parent 215acc0 commit 1e92b64

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

build-static.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,19 @@ os="$(uname -s | tr '[:upper:]' '[:lower:]')"
2929

3030
# init spc command, if we use spc binary, just use it instead of fetching source
3131
if [ -z "${SPC_REL_TYPE}" ]; then
32-
SPC_REL_TYPE="source"
32+
SPC_REL_TYPE="source"
3333
fi
3434
# init spc build additional args
3535
if [ -z "${SPC_OPT_BUILD_ARGS}" ]; then
36-
SPC_OPT_BUILD_ARGS="--debug"
36+
SPC_OPT_BUILD_ARGS="--debug"
3737
fi
3838
# init spc download additional args
3939
if [ -z "${SPC_OPT_DOWNLOAD_ARGS}" ]; then
40+
if [ "${os}" = "linux" ] && [ "${SPC_LIBC}" = "glibc" ]; then
41+
SPC_OPT_DOWNLOAD_ARGS="--debug --ignore-cache-sources=php-src"
42+
else
4043
SPC_OPT_DOWNLOAD_ARGS="--prefer-pre-built --debug --ignore-cache-sources=php-src"
44+
fi
4145
fi
4246
# if we need debug symbols, disable strip
4347
if [ -n "${DEBUG_SYMBOLS}" ]; then

0 commit comments

Comments
 (0)