meson.eclass: unset FLAGS before calling meson setup
authorMike Gilbert <floppym@gentoo.org>
Sun, 3 May 2020 15:30:17 +0000 (11:30 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 3 May 2020 15:31:05 +0000 (11:31 -0400)
Bug: https://bugs.gentoo.org/720818
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/meson.eclass

index 13daa961c7bdb68e409e6a46d78909749960c710..4367156b619886c1550460ffd4aee6ce4b6040a4 100644 (file)
@@ -345,6 +345,9 @@ meson_src_configure() {
        # https://bugs.gentoo.org/625396
        python_export_utf8_locale
 
+       # https://bugs.gentoo.org/720818
+       unset {C,CPP,CXX,F,FC,OBJC,OBJCXX,LD}FLAGS
+
        echo "${mesonargs[@]}" >&2
        "${mesonargs[@]}" || die
 }