We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc0c98f commit e5fee25Copy full SHA for e5fee25
src/SPC/builder/extension/imap.php
@@ -5,6 +5,7 @@
5
namespace SPC\builder\extension;
6
7
use SPC\builder\Extension;
8
+use SPC\builder\linux\SystemUtil;
9
use SPC\exception\WrongUsageException;
10
use SPC\store\FileSystem;
11
use SPC\util\CustomExt;
@@ -41,4 +42,16 @@ public function getUnixConfigureArg(bool $shared = false): string
41
42
}
43
return $arg;
44
45
+
46
+ public function patchBeforeMake(): bool
47
+ {
48
+ if (PHP_OS_FAMILY !== 'Linux' || SystemUtil::isMuslDist()) {
49
+ return false;
50
+ }
51
+ $extra_libs = trim(getenv('SPC_EXTRA_LIBS') . ' -lcrypt');
52
+ f_putenv('SPC_EXTRA_LIBS=' . $extra_libs);
53
+ return true;
54
55
56
57
0 commit comments