mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
For clang, similar to r236137, enable gnu hash generation for dynamic
ELF binaries on x86.
This commit is contained in:
parent
54171f992c
commit
baa749209e
1 changed files with 3 additions and 0 deletions
|
|
@ -4760,6 +4760,9 @@ void freebsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-dynamic-linker");
|
||||
CmdArgs.push_back("/libexec/ld-elf.so.1");
|
||||
}
|
||||
llvm::Triple::ArchType Arch = getToolChain().getArch();
|
||||
if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)
|
||||
CmdArgs.push_back("--hash-style=both");
|
||||
}
|
||||
|
||||
// When building 32-bit code on FreeBSD/amd64, we have to explicitly
|
||||
|
|
|
|||
Loading…
Reference in a new issue