diff options
Diffstat (limited to 'sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild')
-rw-r--r-- | sys-devel/binutils-apple/binutils-apple-11.3.1.ebuild | 4 |
1 files changed, 4 insertions, 0 deletions
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 9263d8e00b0f..9c24505b5520 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 |