Upstream tried to make the default install of bfd/opcodes libs and
headers a bit smoother when dealing with cross-compilers (so native
and cross files wouldn't collide), but they ended up breaking cases
where the package builder already took care of using unique paths.
Force the builds to use our configure paths to avoid that.
URL: https://www.sourceware.org/ml/binutils/2002-05/msg00184.html
fi
fi
[[ ${#PATCHES[@]} -gt 0 ]] && epatch "${PATCHES[@]}"
+
+ # Make sure our explicit libdir paths don't get clobbered. #562460
+ sed -i \
+ -e 's:@bfdlibdir@:@libdir@:g' \
+ -e 's:@bfdincludedir@:@includedir@:g' \
+ {bfd,opcodes}/Makefile.in || die
+
epatch_user
fi