sys-libs/musl: fix leaking of host cflags into cross-musl
authorstefson <herrtimson@yahoo.de>
Mon, 2 Sep 2019 16:43:53 +0000 (18:43 +0200)
committerAnthony G. Basile <blueness@gentoo.org>
Tue, 3 Sep 2019 11:18:32 +0000 (07:18 -0400)
Closes: https://bugs.gentoo.org/667126

Signed-off-by: Steffen Kuhn <nielson2@yandex.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
sys-libs/musl/musl-1.1.20-r1.ebuild
sys-libs/musl/musl-1.1.21.ebuild
sys-libs/musl/musl-1.1.22.ebuild
sys-libs/musl/musl-1.1.23.ebuild
sys-libs/musl/musl-9999.ebuild

index 13a18acc7023d49d41b1171bc5a04d249fb58e03..f53b3b492f0a0cf5f82299eb00cf2ac9b45d6dd3 100644 (file)
@@ -52,6 +52,12 @@ pkg_setup() {
                *) die "Use sys-devel/crossdev to build a musl toolchain" ;;
                esac
        fi
+
+       # fix for #667126, copied from glibc ebuild
+       # make sure host make.conf doesn't pollute us
+       if is_crosscompile || tc-is-cross-compiler ; then
+               CHOST=${CTARGET} strip-unsupported-flags
+       fi
 }
 
 src_prepare() {
index 7ce0d5e96bc4c2a6f2d443a06850413e9505b2de..1f4e2584ce79d7faaee0a9631f5c08d139233d80 100644 (file)
@@ -52,6 +52,12 @@ pkg_setup() {
                *) die "Use sys-devel/crossdev to build a musl toolchain" ;;
                esac
        fi
+
+       # fix for #667126, copied from glibc ebuild
+       # make sure host make.conf doesn't pollute us
+       if is_crosscompile || tc-is-cross-compiler ; then
+               CHOST=${CTARGET} strip-unsupported-flags
+       fi
 }
 
 src_configure() {
index 7db3e1cc384e8734fea3c0408ff0c1e17eecf03c..129c83020221c4fe5db1c8fe341b572bffd1c16d 100644 (file)
@@ -52,6 +52,12 @@ pkg_setup() {
                *) die "Use sys-devel/crossdev to build a musl toolchain" ;;
                esac
        fi
+
+       # fix for #667126, copied from glibc ebuild
+       # make sure host make.conf doesn't pollute us
+       if is_crosscompile || tc-is-cross-compiler ; then
+               CHOST=${CTARGET} strip-unsupported-flags
+       fi
 }
 
 src_configure() {
index 22f16fa8bfb09faa1d2b994f417d7950c3d2f65b..0827b9d412bf0cdf590a852df1be17d9a1b28cef 100644 (file)
@@ -52,6 +52,12 @@ pkg_setup() {
                *) die "Use sys-devel/crossdev to build a musl toolchain" ;;
                esac
        fi
+
+       # fix for #667126, copied from glibc ebuild
+       # make sure host make.conf doesn't pollute us
+       if is_crosscompile || tc-is-cross-compiler ; then
+               CHOST=${CTARGET} strip-unsupported-flags
+       fi
 }
 
 src_configure() {
index 22f16fa8bfb09faa1d2b994f417d7950c3d2f65b..0827b9d412bf0cdf590a852df1be17d9a1b28cef 100644 (file)
@@ -52,6 +52,12 @@ pkg_setup() {
                *) die "Use sys-devel/crossdev to build a musl toolchain" ;;
                esac
        fi
+
+       # fix for #667126, copied from glibc ebuild
+       # make sure host make.conf doesn't pollute us
+       if is_crosscompile || tc-is-cross-compiler ; then
+               CHOST=${CTARGET} strip-unsupported-flags
+       fi
 }
 
 src_configure() {