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
Copy file name to clipboardExpand all lines: docs/en/guide/action-build.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,10 @@ while also defining the extensions to compile.
16
16
17
17
1. Fork project.
18
18
2. Go to the Actions of the project and select `CI`.
19
-
3. Select `Run workflow`, fill in the PHP version you want to compile, the target type, and the list of extensions. (extensions comma separated, e.g. `bcmath,curl,mbstring`)
20
-
4. After waiting for about a period of time, enter the corresponding task and get `Artifacts`.
19
+
3. Select `Run workflow`, fill in the PHP version you want to compile, the target type, and the list of static extensions. (comma separated, e.g. `bcmath,curl,mbstring`)
20
+
4. If you need shared extensions (for example `xdebug`), set `shared-extensions` (comma separated, e.g. `xdebug`).
21
+
5. If you need FrankenPHP, enable `build-frankenphp` and also enable `enable-zts`.
22
+
6. After waiting for about a period of time, enter the corresponding task and get `Artifacts`.
21
23
22
24
If you enable `debug`, all logs will be output at build time, including compiled logs, for troubleshooting.
Copy file name to clipboardExpand all lines: src/SPC/builder/linux/LinuxBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
162
162
thrownewWrongUsageException(
163
163
"You're building against musl libc statically (the default on Linux), but you're trying to build shared extensions.\n" .
164
164
'Static musl libc does not implement `dlopen`, so your php binary is not able to load shared extensions.' . "\n" .
165
-
'Either use SPC_LIBC=glibc to link against glibc on a glibc OS, or use SPC_TARGET="native-native-musl -dynamic" to link against musl libc dynamically using `zig cc`.'
165
+
'Either use SPC_LIBC=glibc to link against glibc on a glibc OS, use SPC_TARGET="native-native-musl -dynamic" to link against musl libc dynamically using `zig cc` or use SPC_MUSL_DYNAMIC=true on alpine.'
0 commit comments