aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-11-17 11:48:39 +0000
committerSam James <sam@gentoo.org>2021-11-17 11:48:39 +0000
commit93ac8864bfa76c8376f0aaaf0c1c00023fd5eb50 (patch)
tree92fbe88692eeea68cfb6dddb653d61874156e184
parentsys-devel/gcc: cleanup now-obsolete patches (now within musl patchset) (diff)
downloadmusl-93ac8864.tar.gz
musl-93ac8864.tar.bz2
musl-93ac8864.zip
toolchain.eclass: only apply patches if CTARGET is musl
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/toolchain.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 39466996..627531f2 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -556,7 +556,7 @@ do_gcc_gentoo_patches() {
tc_apply_patches "Applying uClibc patches ..." "${WORKDIR}"/uclibc/*.patch
fi
- if [[ -n ${MUSL_VER} ]] ; then #&& [[ ${CTARGET} == *musl* ]] ; then
+ if [[ -n ${MUSL_VER} ]] && [[ ${CTARGET} == *musl* ]] ; then
if [[ ${CATEGORY} == cross-* ]] ; then
# We don't want to apply some patches when cross-compiling.
if [[ -d "${WORKDIR}"/musl/nocross ]] ; then