mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
x265: fix i686 build
This commit is contained in:
parent
32d627d3ec
commit
d6937f6ae7
2 changed files with 14 additions and 0 deletions
11
pkgs/by-name/x2/x265/fix-plt-rel.patch
Normal file
11
pkgs/by-name/x2/x265/fix-plt-rel.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/common/x86/cpu-a.asm
|
||||
+++ b/common/x86/cpu-a.asm
|
||||
@@ -177,7 +177,7 @@ cglobal safe_intel_cpu_indicator_init
|
||||
%if WIN64
|
||||
lea rax, [intel_cpu_indicator_init]
|
||||
call rax
|
||||
-%elif FORMAT_ELF
|
||||
+%elif UNIX64 && FORMAT_ELF
|
||||
call [rel intel_cpu_indicator_init wrt ..plt]
|
||||
%else
|
||||
call intel_cpu_indicator_init
|
||||
|
|
@ -55,6 +55,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
# fix compilation with gcc15
|
||||
# https://bitbucket.org/multicoreware/x265_git/pull-requests/36
|
||||
./gcc15-fixes.patch
|
||||
# fix i686-linux build
|
||||
# https://bitbucket.org/multicoreware/x265_git/issues/1030
|
||||
./fix-plt-rel.patch
|
||||
]
|
||||
# TODO: remove after update to version 4.2
|
||||
++ lib.optionals (stdenv.hostPlatform.isAarch32 && stdenv.hostPlatform.isLinux) [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue