You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; Linux can use different build toolchain, but the toolchain can not be changed in this file:
70
-
; - musl (default): used for general linux distros, can build `musl-static` target only.
71
-
; - zig (WIP): used for general linux distros, can build `musl`and `glibc` targets.
72
-
; - musl-native: used for alpine linux, can build `musl-static` and `musl`(WIP) target.
73
-
; - gnu-native (assume): used for general linux distros, can build `glibc` target only and have portability issues.
67
+
; Linux can use different build toolchains.
68
+
; - musl (default, when SPC_LIBC=musl): used for general linux distros, can build `musl` (statically linked) only.
69
+
; - zig (will become default): usable on all Linux distros, can build `-musl`, `arch-linux-musl -dynamic` and `arch-linux-gnu` targets. Can specify version such as `x86_64-linux-gnu.2.17`.
70
+
; - musl-native: used for alpine linux, can build `musl` and `musl -dynamic` target.
71
+
; - gnu-native: used for general linux distros, can build gnu target for the installed glibc version only.
74
72
75
-
; build target:
76
-
; - musl-static (default): pure static linking, using musl-libc, can run on any linux distro.
77
-
; - musl: static linking with dynamic linking to musl-libc, can run on musl-based linux distro.
78
-
; - glibc: static linking with dynamic linking to glibc, can run on glibc-based linux distro.
79
-
80
-
; include PATH for musl libc.
73
+
; LEGACY option to specify the target
81
74
SPC_LIBC=musl
75
+
76
+
; Recommended: specify your target here. Zig toolchain will be used.
77
+
; examples:
78
+
; `native-native-gnu` - links against glibc, current OS version
79
+
; `native-native-gnu.2.17` - links against glibc, version 2.17
80
+
; `native-native` - links against system libc dynamically
81
+
; `native-native-musl` - links against musl libc statically
82
+
; `native-native-musl -dynamic` - links against musl libc dynamically
83
+
; SPC_TARGET=
84
+
82
85
; compiler environments
83
86
CC=${SPC_LINUX_DEFAULT_CC}
84
87
CXX=${SPC_LINUX_DEFAULT_CXX}
@@ -87,8 +90,7 @@ LD=${SPC_LINUX_DEFAULT_LD}
87
90
; default compiler flags, used in CMake toolchain file, openssl and pkg-config build
88
91
SPC_DEFAULT_C_FLAGS="-fPIC -Os"
89
92
SPC_DEFAULT_CXX_FLAGS="-fPIC -Os"
90
-
; extra libs for building php executable, used in `make` command for building php (this value may changed by extension build process, space separated)
91
-
SPC_EXTRA_LIBS=""
93
+
SPC_DEFAULT_LD_FLAGS=""
92
94
; upx executable path
93
95
UPX_EXEC=${PKG_ROOT_PATH}/bin/upx
94
96
; phpmicro patches, for more info, see: https://github.com/easysoft/phpmicro/tree/master/patches
0 commit comments