Skip to content

Commit 4efa52c

Browse files
committed
imap client needs -lcrypt on glibc
1 parent bb10911 commit 4efa52c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SPC/util/SPCConfigUtil.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ private function getLibsString(array $libraries, bool $withDependencies = false)
149149
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux' && !(getenv('SPC_LIBC') === 'glibc' && str_contains(getenv('CC'), 'devtoolset-10'))) {
150150
$short_name[] = '-lgomp';
151151
}
152+
if (in_array('imap', $libraries) && PHP_OS_FAMILY === 'Linux' && getenv('SPC_LIBC') === 'glibc') {
153+
$short_name[] = '-lcrypt';
154+
}
152155
return implode(' ', $short_name);
153156
}
154157

0 commit comments

Comments
 (0)