This commit is contained in:
crazywhalecc
2026-02-06 16:34:51 +08:00
parent cf5a946de1
commit 478b85879f
11 changed files with 97 additions and 70 deletions

View File

@@ -15,10 +15,6 @@ class bzip2
#[PatchDescription('Patch bzip2 Makefile to add -fPIC flag for position-independent code')]
public function patchBzip2Makefile(Artifact $artifact): void
{
FileSystem::replaceFileStr(
$artifact->getSourceDir() . '/Makefile',
'CFLAGS=-Wall',
'CFLAGS=-fPIC -Wall'
);
FileSystem::replaceFileStr("{$artifact->getSourceDir()}/Makefile", 'CFLAGS=-Wall', 'CFLAGS=-fPIC -Wall');
}
}