File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,14 +248,10 @@ if [ "${os}" = "linux" ] && [ "${SPC_LIBC}" = "glibc" ]; then
248248fi
249249
250250CGO_LDFLAGS=" ${CGO_LDFLAGS} ${PWD} /buildroot/lib/libbrotlicommon.a ${PWD} /buildroot/lib/libbrotlienc.a ${PWD} /buildroot/lib/libbrotlidec.a ${PWD} /buildroot/lib/libwatcher-c.a $( ${spcCommand} spc-config " ${PHP_EXTENSIONS} " --with-libs=" ${PHP_EXTENSION_LIBS} " --libs) "
251- if [ " ${os} " = " linux" ]; then
252- if echo " ${PHP_EXTENSIONS} " | grep -qE " \b(intl|imagick|grpc|v8js|protobuf|mongodb|tbb)\b" ; then
253- CGO_LDFLAGS=" ${CGO_LDFLAGS} -lstdc++"
254- fi
255- if [ " ${SPC_LIBC} " = " glibc" ]; then
256- CGO_LDFLAGS=" ${CGO_LDFLAGS// -lphp/ -Wl,--whole-archive -lphp -Wl,--no-whole-archive} "
257- ar d " ${PWD} /buildroot/lib/libphp.a" " $( ar t " ${PWD} /buildroot/lib/libphp.a" | grep ' \.a$' ) "
258- fi
251+ if [ " ${os} " = " linux" ] && [ " ${SPC_LIBC} " = " glibc" ]; then
252+ CGO_LDFLAGS=" ${CGO_LDFLAGS// -lphp/ -Wl,--whole-archive -lphp -Wl,--no-whole-archive} "
253+ # shellcheck disable=SC2046
254+ ar d " ${PWD} /buildroot/lib/libphp.a" $( ar t " ${PWD} /buildroot/lib/libphp.a" | grep ' \.a$' )
259255fi
260256
261257export CGO_LDFLAGS
You can’t perform that action at this time.
0 commit comments