binutils: fix build with host gcc < 4.9
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 2 Apr 2017 15:40:43 +0000 (17:40 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 12 Apr 2017 07:54:39 +0000 (09:54 +0200)
commitefb22b6f06d44bd156ea42d39779dabd356c7181
tree4c185a3378ef7e2ac13eb5ec8fb15e44dd2de575
parent6713694fe4377f0988e2d558a6cd9b05ca9b18f1
binutils: fix build with host gcc < 4.9

binutils 2.27 checks if the target compiler supports -Wstack-
usage=262144, and also uses this setting for the host compiler. If the
host compiler is gcc < 4.9 binutils build will fail. This backports 2
commits which are fixing this problem for binutils 2.28.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/devel/binutils/patches/0001-Do-not-pass-host-compiler-sanitization-flags-on-to-l.patch [new file with mode: 0644]
package/devel/binutils/patches/0002-When-building-target-binaries-ensure-that-the-warnin.patch [new file with mode: 0644]