remove lto related stuff again, not worth using

This commit is contained in:
DubbleClick
2025-07-28 19:43:01 +07:00
parent 3087dc86f8
commit 342192fd67
7 changed files with 20 additions and 32 deletions

View File

@@ -97,16 +97,6 @@ trait UnixLibraryTrait
return trim($env);
}
public function getLibExtraLdFlags(): string
{
return getenv($this->getSnakeCaseName() . '_LDFLAGS') ?: '';
}
public function getLibExtraLibs(): string
{
return getenv($this->getSnakeCaseName() . '_LIBS') ?: '';
}
public function getLibExtraCXXFlags(): string
{
$env = getenv($this->getSnakeCaseName() . '_CXXFLAGS') ?: '';
@@ -115,4 +105,18 @@ trait UnixLibraryTrait
}
return trim($env);
}
public function getLibExtraLdFlags(): string
{
$env = getenv($this->getSnakeCaseName() . '_LDFLAGS') ?: '';
if (!str_contains($env, $this->builder->arch_ld_flags)) {
$env .= ' ' . $this->builder->arch_ld_flags;
}
return trim($env);
}
public function getLibExtraLibs(): string
{
return getenv($this->getSnakeCaseName() . '_LIBS') ?: '';
}
}