Skip to content

Commit

Permalink
sys-devel/binutils-config-5.1-r7: fix argument suppression logic for …
Browse files Browse the repository at this point in the history
…macOS

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
  • Loading branch information
bekcpear authored and grobian committed Dec 16, 2023
1 parent dee6d4d commit 55996b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys-devel/binutils-config/files/ldwrapper.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 1999-2021 Gentoo Authors
* Copyright 1999-2023 Gentoo Authors
* Distributed under the terms of the GNU General Public License v2
* Authors: Fabian Groffen <grobian@gentoo.org>
* Michael Haubenwallner <haubi@gentoo.org>
Expand Down Expand Up @@ -430,13 +430,15 @@ main(int argc, char *argv[])
{
i++;
j--;
k -= 2;
continue;
}
if (strcmp(argv[i], "-platform_version") == 0 &&
i < argc - 3 && strcmp(argv[i + 1], "macos") == 0)
{
i += 3;
j--;
k -= 4;
continue;
}
}
Expand Down

0 comments on commit 55996b0

Please sign in to comment.