summaryrefslogtreecommitdiff
path: root/src/stage2/patches/binutils.patch
blob: c5dfe64619b6f9eca96a758c944ee34f76055b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/PKGBUILD	2018-03-29 08:30:40.025895502 +0200
+++ b/PKGBUILD	2018-03-29 08:58:13.640738777 +0200
@@ -4,8 +4,8 @@
 # toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
 
 pkgname=binutils
-pkgver=2.29.1
-pkgrel=3
+pkgver=2.30
+pkgrel=1
 pkgdesc='A set of programs to assemble and manipulate binary and object files'
 arch=(x86_64)
 url='http://www.gnu.org/software/binutils/'
@@ -24,7 +24,7 @@ source=(https://ftp.gnu.org/gnu/binutils
         0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
         0001-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch)
 validpgpkeys=(3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F)
-md5sums=('acc9cd826edb9954ac7cecb81c727793'
+md5sums=('ffc476dd46c96f932875d1b2e27e929f'
          'SKIP'
          'e4be936139ef46122cb3841881c432b2'
          '469164f3c93a0e92a697537b60c9806c'
@@ -53,6 +53,7 @@ build() {
   cd binutils-build
 
   "$srcdir/binutils-$pkgver/configure" \
+    --host=@CHOST@ --build=@BUILDHOST@ \
     --prefix=/usr \
     --with-lib-path=/usr/lib:/usr/local/lib \
     --with-bugurl=https://bugs.archlinux.org/ \
@@ -66,7 +67,7 @@ build() {
     --with-pic \
     --disable-werror \
     --disable-gdb \
-    --with-system-zlib
+    --with-system-zlib=@SYSROOT@/usr/lib/libz.so
 
   make configure-host
   make tooldir=/usr