mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
15 lines
436 B
INI
15 lines
436 B
INI
; Modify this file name to `env.custom.ini`, and run `bin/spc-gnu-docker`,
|
|
; you can compile a GNU libc based static binary !
|
|
[global]
|
|
SPC_SKIP_DOCTOR_CHECK_ITEMS="if musl-wrapper is installed,if musl-cross-make is installed"
|
|
|
|
[linux]
|
|
CC=gcc
|
|
CXX=g++
|
|
AR=ar
|
|
LD=ld
|
|
SPC_DEFAULT_C_FLAGS=-fPIC
|
|
SPC_NO_MUSL_PATH=yes
|
|
SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS_PROGRAM="-Wl,-O1 -pie"
|
|
SPC_CMD_VAR_PHP_MAKE_EXTRA_LIBS="-ldl -lpthread -lm -lresolv -lutil"
|