gcl*: fix with updated binutils

The patch was taken from Debian; they apparently don't have a src repo.
This commit is contained in:
Vladimír Čunát 2019-02-19 18:01:18 +01:00
parent 024407bf9a
commit bdd47aaf83
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 11 additions and 0 deletions

View file

@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -e 's/<= obj-date/<= (if (= 0 obj-date) 1 obj-date)/' -i lsp/make.lisp
''
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902475
+ ''
substituteInPlace h/elf64_i386_reloc.h \
--replace 'case R_X86_64_PC32:' 'case R_X86_64_PC32: case R_X86_64_PLT32:'
'';
sourceRoot = "gcl/gcl";

View file

@ -21,6 +21,12 @@ stdenv.mkDerivation rec {
sha256 = "00jbsn0qp8ki2w7dx8caha7g2hr9076xa6bg48j3qqqncff93zdh";
})];
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902475
postPatch = ''
substituteInPlace h/elf64_i386_reloc.h \
--replace 'case R_X86_64_PC32:' 'case R_X86_64_PC32: case R_X86_64_PLT32:'
'';
buildInputs = [
mpfr m4 binutils emacs gmp
libX11 xorgproto libXi