Skip to content

Commit 2dda459

Browse files
committed
Add SPC_MUSL_DYNAMIC to static shared ext err msg
1 parent 195a0c4 commit 2dda459

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SPC/builder/linux/LinuxBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
162162
throw new WrongUsageException(
163163
"You're building against musl libc statically (the default on Linux), but you're trying to build shared extensions.\n" .
164164
'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`\n' .
166+
'or use SPC_MUSL_DYNAMIC=true on alpine.'
166167
);
167168
}
168169
logger()->info('Building shared extensions...');

0 commit comments

Comments
 (0)