Skip to content

Commit 5b4f4f8

Browse files
committed
maybe?
1 parent 22d263c commit 5b4f4f8

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/SPC/builder/unix/library/libwebp.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,25 @@
55
namespace SPC\builder\unix\library;
66

77
use SPC\util\executor\UnixCMakeExecutor;
8+
use SPC\util\SPCTarget;
89

910
trait libwebp
1011
{
1112
protected function build(): void
1213
{
1314
UnixCMakeExecutor::create($this)
14-
->appendEnv([
15-
'CFLAGS' => GNU_ARCH === 'x86_64' ? '-mavx2' : '',
16-
])
1715
->addConfigureArgs(
18-
'-DWEBP_BUILD_EXTRAS=OFF'
16+
'-DWEBP_BUILD_EXTRAS=OFF',
17+
'-DWEBP_BUILD_ANIM_UTILS=OFF',
18+
'-DWEBP_BUILD_CWEBP=OFF',
19+
'-DWEBP_BUILD_DWEBP=OFF',
20+
'-DWEBP_BUILD_GIF2WEBP=OFF',
21+
'-DWEBP_BUILD_IMG2WEBP=OFF',
22+
'-DWEBP_BUILD_VWEBP=OFF',
23+
'-DWEBP_BUILD_WEBPINFO=OFF',
24+
'-DWEBP_BUILD_WEBPMUX=OFF',
25+
'-DWEBP_BUILD_FUZZTEST=OFF',
26+
SPCTarget::getLibcVersion() === '2.31' && GNU_ARCH === 'x86_64' ? '-DWEBP_ENABLE_SIMD=OFF' : '' // fix an edge bug for debian 11 with gcc 10
1927
)
2028
->build();
2129
// patch pkgconfig

0 commit comments

Comments
 (0)