[Pixman] [PATCH 2/3] build: use '-mloongson-mmi' for Loongson MMI.

YunQiang Su wzssyqa at gmail.com
Tue Feb 11 09:26:15 UTC 2020


Yin Shiyou <yinshiyou-hf at loongson.cn> 于2020年2月11日周二 下午3:59写道:
>
> It's suggested to use '-mloongson-mmi' to enable MMI.
> Use '-march=loongson2f' will lead a link error in new platform
> while config check and then MMI will be disabled.
> ---
>  configure.ac | 2 +-
>  meson.build  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 1ca3974..fd7df47 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -273,7 +273,7 @@ dnl ===========================================================================
>  dnl Check for Loongson Multimedia Instructions
>
>  if test "x$LS_CFLAGS" = "x" ; then
> -    LS_CFLAGS="-march=loongson2f"
> +    LS_CFLAGS="-mloongson-mmi"
>  fi
>

As I know, somebody are still using 2F, such as Gentoo.
This change will break these distributions.

Keep compatible please.

>  have_loongson_mmi=no
> diff --git a/meson.build b/meson.build
> index 15d3409..a45c969 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -51,7 +51,7 @@ endforeach
>
>  use_loongson_mmi = get_option('loongson-mmi')
>  have_loongson_mmi = false
> -loongson_mmi_flags = ['-march=loongson2f']
> +loongson_mmi_flags = ['-mloongson-mmi']
>  if not use_loongson_mmi.disabled()
>    if host_machine.cpu_family() == 'mips64' and cc.compiles('''
>        #ifndef __mips_loongson_vector_rev
> --
> 2.1.0
>
> _______________________________________________
> Pixman mailing list
> Pixman at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pixman



-- 
YunQiang Su


More information about the Pixman mailing list