Skip to content

Commit 995187d

Browse files
committed
extra information for steps
1 parent 5333a04 commit 995187d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SPC/builder/linux/LinuxBuilder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
157157
$shared_extensions = array_map('trim', array_filter(explode(',', $this->getOption('build-shared'))));
158158
if (!empty($shared_extensions)) {
159159
if (SPCTarget::isStatic()) {
160-
throw new WrongUsageException("You're building against musl libc statically, but you're trying to build shared extensions. Static musl libc does not implement `dlopen`, so your php binary is not able to load shared extensions.");
160+
throw new WrongUsageException(
161+
"You're building against musl libc statically (the default on Linux), but you're trying to build shared extensions.\n" .
162+
'Static musl libc does not implement `dlopen`, so your php binary is not able to load shared extensions.' . "\n" .
163+
'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`.'
164+
);
161165
}
162166
logger()->info('Building shared extensions...');
163167
$this->buildSharedExts();

0 commit comments

Comments
 (0)