Skip to content

Commit 082b9a9

Browse files
Update src/SPC/builder/unix/library/jbig.php
Co-authored-by: Jerry Ma <[email protected]>
1 parent 5675a1e commit 082b9a9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ trait jbig
1212
{
1313
/**
1414
* @throws FileSystemException
15-
* @throws RuntimeException
1615
*/
17-
protected function build(): void
16+
public function patchBeforeBuild(): bool
1817
{
1918
// Patch Makefile to add -fPIC flag for position-independent code
2019
FileSystem::replaceFileStr($this->source_dir . '/Makefile', 'CFLAGS = -O2 -W -Wno-unused-result', 'CFLAGS = -O2 -W -Wno-unused-result -fPIC');
20+
}
2121

22+
/**
23+
* @throws RuntimeException
24+
*/
25+
protected function build(): void
26+
{
2227
// Build the library
2328
shell()->cd($this->source_dir)->initializeEnv($this)
2429
->exec("make -j{$this->builder->concurrency} {$this->builder->getEnvString()} lib")

0 commit comments

Comments
 (0)