From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B4A91382C5 for ; Sat, 19 Dec 2020 19:07:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72427E0870; Sat, 19 Dec 2020 19:07:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C6D4E0870 for ; Sat, 19 Dec 2020 19:07:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 184CC34100E for ; Sat, 19 Dec 2020 19:07:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A42F49 for ; Sat, 19 Dec 2020 19:07:43 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1608404859.80f6d04c612d5bd82d6cb0aca530c6f68addf7b6.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils-apple/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild X-VCS-Directories: sys-devel/binutils-apple/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 80f6d04c612d5bd82d6cb0aca530c6f68addf7b6 X-VCS-Branch: master Date: Sat, 19 Dec 2020 19:07:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3ed7bbe0-1a75-4d09-a6c2-d4b6acaf2034 X-Archives-Hash: cfe2a144f6aa92249e2a1f7b09d0e14c commit: 80f6d04c612d5bd82d6cb0aca530c6f68addf7b6 Author: Jacob Floyd gmail com> AuthorDate: Fri Dec 18 21:06:17 2020 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sat Dec 19 19:07:39 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80f6d04c sys-devel/binutils-apple-11.3.1: fix compilation on newer macOS In the version of private header (dyld_priv.h) copied from DYLD sources, It uses TARGET_OS_BRIDGE which is not defined in the latest MacOSX.sdk. We don't care about BridgeOS, so we just disable that. This only hits during stage3 and later once we've compiled our own clang so that clang starts injecting -Werror,-Wundef-prefix=TARGET_OS_ (Apple must have that disabled in their version of clang). Bug: https://bugs.gentoo.org/758167 Signed-off-by: Jacob Floyd gmail.com> Signed-off-by: Fabian Groffen gentoo.org> sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild b/sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild index 9263d8e00b0..9c24505b552 100644 --- a/sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild @@ -79,6 +79,10 @@ src_prepare() { mkdir -p include/mach-o || die # never present because it's private cp ../../${DYLD}/include/mach-o/dyld_priv.h include/mach-o || die + # TARGET_OS_BRIDGE is undefined in TargetConditionals.h of newer MacOSX.sdk. + # We don't target BridgeOS. Disable it to avoid errors when clang adds: + # -Werror,-Wundef-prefix=TARGET_OS_ + sed -i -e 's/#if TARGET_OS_BRIDGE/#if 0/' include/mach-o/dyld_priv.h local VER_STR="\"@(#)PROGRAM:ld PROJECT:${LD64} (Gentoo ${PN}-${PVR})\\n\"" echo "char ldVersionString[] = ${VER_STR};" > version.cpp