iproute tarball used to use 'CC = ' to override a compiler.
Now it uses 'CC :=' and it broke our sed silently.
Reported-by: Gerhard Bräunlich
Reported-by: n05 on #gentoo-embedded
Bug: https://bugs.gentoo.org/591218
Package-Manager: portage-2.3.0
epatch "${PATCHES[@]}"
sed -i \
- -e '/^CC =/d' \
+ -e '/^CC :=/d' \
-e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
-e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
-e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849
sed -i \
- -e '/^CC =/d' \
+ -e '/^CC :=/d' \
-e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
-e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
-e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \