File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/SPC/builder/unix/library Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 8
8
use SPC \exception \RuntimeException ;
9
9
use SPC \store \FileSystem ;
10
10
use SPC \util \executor \UnixAutoconfExecutor ;
11
+ use SPC \util \SPCTarget ;
11
12
12
13
trait libtiff
13
14
{
@@ -17,7 +18,9 @@ trait libtiff
17
18
*/
18
19
protected function build (): void
19
20
{
21
+ $ libcpp = SPCTarget::getTargetOS () === 'Darwin ' ? '-lc++ ' : '-lstdc++ ' ;
20
22
FileSystem::replaceFileStr ($ this ->source_dir . '/configure ' , '-lwebp ' , '-lwebp -lsharpyuv ' );
23
+ FileSystem::replaceFileStr ($ this ->source_dir . '/configure ' , '-l"$lerc_lib_name" ' , '-l"$lerc_lib_name" ' . $ libcpp );
21
24
UnixAutoconfExecutor::create ($ this )
22
25
->configure (
23
26
// zlib deps
@@ -31,6 +34,8 @@ protected function build(): void
31
34
'--disable-old-jpeg ' ,
32
35
'--disable-jpeg12 ' ,
33
36
'--disable-libdeflate ' ,
37
+ '--disable-tools ' ,
38
+ '--disable-contrib ' ,
34
39
'--disable-cxx ' ,
35
40
'--without-x ' ,
36
41
)
You can’t perform that action at this time.
0 commit comments