diff options
author | Fabian Groffen <grobian@gentoo.org> | 2018-01-31 10:49:10 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2018-01-31 10:50:06 +0100 |
commit | edc0d44f70c27daebcc080ac5d08e8e191bccd95 (patch) | |
tree | beea8dfaae9613f1822fe1de87f6b9350dcfac57 /sys-devel/binutils-config | |
parent | bootstrap-prefix.sh: expose stage3 dynamic linker early on. (diff) | |
download | prefix-edc0d44f70c27daebcc080ac5d08e8e191bccd95.tar.gz prefix-edc0d44f70c27daebcc080ac5d08e8e191bccd95.tar.bz2 prefix-edc0d44f70c27daebcc080ac5d08e8e191bccd95.zip |
sys-devel/binutils-config: fix inversed logic
Obviously we should skip turning -L into -R if the path points inside
PORTAGE_BUILDDIR, not the other way around.
Thanks to this, bugs like #642040 surfaced.
Bug: https://bugs.gentoo.org/642040
Diffstat (limited to 'sys-devel/binutils-config')
-rw-r--r-- | sys-devel/binutils-config/files/ldwrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-devel/binutils-config/files/ldwrapper.c b/sys-devel/binutils-config/files/ldwrapper.c index 1ed11ce42d..3ff52acc60 100644 --- a/sys-devel/binutils-config/files/ldwrapper.c +++ b/sys-devel/binutils-config/files/ldwrapper.c @@ -428,7 +428,7 @@ main(int argc, char *argv[]) continue; /* does it refer to the build directory? skip */ - if (builddir != NULL && strncmp(builddir, path, len) != 0) + if (builddir != NULL && strncmp(builddir, path, len) == 0) continue; if (is_darwin) { |