commit: c76c1b6d1ee3fcb4462e191e58a5c1bc6569fb03 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Fri May 13 12:09:27 2016 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Fri May 13 12:09:27 2016 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=c76c1b6d
sys-devel/binutils-config/ldwrapper: strip CHOST from binutils-config -c output we only need the number here, not the full profile name sys-devel/binutils-config/files/ldwrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys-devel/binutils-config/files/ldwrapper.c b/sys-devel/binutils-config/files/ldwrapper.c index a98b1e6..a08985f 100644 --- a/sys-devel/binutils-config/files/ldwrapper.c +++ b/sys-devel/binutils-config/files/ldwrapper.c @@ -125,6 +125,8 @@ find_real_ld(char **ld, char verbose, char *wrapper) if ((f = popen("binutils-config -c", "r")) != NULL) { char p[ESIZ]; if (fgets(p, ESIZ, f) != NULL) { + if (strncmp(p, CHOST "-", strlen(CHOST "-")) == 0) + p += strlen(CHOST "-"); snprintf(e, ESIZ, EPREFIX "/usr/" CHOST "/binutils-bin/%s/%s", p, wrapper); } else {