meson.eclass: fix tc-endian call for native file
authorMike Gilbert <floppym@gentoo.org>
Sun, 3 May 2020 02:24:20 +0000 (22:24 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 3 May 2020 02:24:20 +0000 (22:24 -0400)
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/meson.eclass

index 7b1a6a9735bdc211b10475580632839704ec09f5..323b6ebf09539867db3ffdfcc0f559b084536599 100644 (file)
@@ -248,7 +248,7 @@ _meson_create_native_file() {
        system = '${system}'
        cpu_family = '${cpu_family}'
        cpu = '${cpu}'
-       endian = '$(tc-endian "${CHOST}")'
+       endian = '$(tc-endian "${CBUILD}")'
        EOF
 
        echo "${fn}"