diff options
author | stefson <herrtimson@yahoo.de> | 2019-09-02 18:43:53 +0200 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-09-03 07:18:32 -0400 |
commit | 2c3bb292bd123f58758554c23f2d56acae081885 (patch) | |
tree | 63ebb57783d8a5a932f59c84ae697b48d443f18a /sys-libs/musl/musl-9999.ebuild | |
parent | dev-ruby/rdoc: amd64 stable wrt bug #693358 (diff) | |
download | gentoo-2c3bb292bd123f58758554c23f2d56acae081885.tar.gz gentoo-2c3bb292bd123f58758554c23f2d56acae081885.tar.bz2 gentoo-2c3bb292bd123f58758554c23f2d56acae081885.zip |
sys-libs/musl: fix leaking of host cflags into cross-musl
Closes: https://bugs.gentoo.org/667126
Signed-off-by: Steffen Kuhn <nielson2@yandex.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'sys-libs/musl/musl-9999.ebuild')
-rw-r--r-- | sys-libs/musl/musl-9999.ebuild | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-libs/musl/musl-9999.ebuild b/sys-libs/musl/musl-9999.ebuild index 22f16fa8bfb0..0827b9d412bf 100644 --- a/sys-libs/musl/musl-9999.ebuild +++ b/sys-libs/musl/musl-9999.ebuild @@ -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() { |