Сравнение clang-common-15.0.7-r5 с clang-common-15.0.7-r7
/usr/portage/sys-devel/clang-common/clang-common-15.0.7-r7.ebuild 2023-10-09 14:52:35.480368501 +0300 | ||
---|---|---|
24 | 24 |
!llvm-libunwind? ( sys-libs/libunwind[static-libs] ) |
25 | 25 |
) |
26 | 26 |
!default-compiler-rt? ( sys-devel/gcc ) |
27 |
default-libcxx? ( >=sys-libs/libcxx-${PV} ) |
|
27 |
default-libcxx? ( >=sys-libs/libcxx-${PV}[static-libs] ) |
|
28 | 28 |
!default-libcxx? ( sys-devel/gcc ) |
29 | 29 |
default-lld? ( sys-devel/lld ) |
30 | 30 |
!default-lld? ( sys-devel/binutils ) |
... | ... | |
87 | 87 |
@gentoo-runtimes.cfg |
88 | 88 |
@gentoo-gcc-install.cfg |
89 | 89 |
@gentoo-hardened.cfg |
90 |
# bug #870001 |
|
91 |
-include "${EPREFIX}/usr/include/gentoo/maybe-stddefs.h" |
|
90 | 92 |
EOF |
91 | 93 | |
92 | 94 |
# Baseline hardening (bug #851111) |
... | ... | |
102 | 104 | |
103 | 105 |
dodir /usr/include/gentoo |
104 | 106 | |
107 |
cat >> "${ED}/usr/include/gentoo/maybe-stddefs.h" <<-EOF || die |
|
108 |
/* __has_include is an extension, but it's fine, because this is only |
|
109 |
for Clang anyway. */ |
|
110 |
#if defined __has_include && __has_include (<stdc-predef.h>) && !defined(__GLIBC__) |
|
111 |
# include <stdc-predef.h> |
|
112 |
#endif |
|
113 |
EOF |
|
114 | ||
105 | 115 |
local fortify_level=$(usex hardened 3 2) |
106 | 116 |
# We have to do this because glibc's headers warn if F_S is set |
107 | 117 |
# without optimization and that would at the very least be very noisy |