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 5675a1e commit 082b9a9Copy full SHA for 082b9a9
src/SPC/builder/unix/library/jbig.php
@@ -12,13 +12,18 @@ trait jbig
12
{
13
/**
14
* @throws FileSystemException
15
- * @throws RuntimeException
16
*/
17
- protected function build(): void
+ public function patchBeforeBuild(): bool
18
19
// Patch Makefile to add -fPIC flag for position-independent code
20
FileSystem::replaceFileStr($this->source_dir . '/Makefile', 'CFLAGS = -O2 -W -Wno-unused-result', 'CFLAGS = -O2 -W -Wno-unused-result -fPIC');
+ }
21
22
+ /**
23
+ * @throws RuntimeException
24
+ */
25
+ protected function build(): void
26
+ {
27
// Build the library
28
shell()->cd($this->source_dir)->initializeEnv($this)
29
->exec("make -j{$this->builder->concurrency} {$this->builder->getEnvString()} lib")
0 commit comments