----- Original Message -----
> ---
>  configure.ac |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 49e81ad..942084b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1875,9 +1875,9 @@ dnl Restore LDFLAGS and CPPFLAGS
>  LDFLAGS="$_SAVE_LDFLAGS"
>  CPPFLAGS="$_SAVE_CPPFLAGS"
>  
> -dnl Add user CFLAGS and CXXFLAGS
> -CFLAGS="$CFLAGS $USER_CFLAGS"
> -CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
> +dnl Add user CFLAGS and CXXFLAGS and sort them
> +CFLAGS=`echo "$CFLAGS $USER_CFLAGS"|tr " " "\n"|sort -u|tr "\n" " "`
> +CXXFLAGS=`echo "$CXXFLAGS $USER_CXXFLAGS"|tr " " "\n"|sort -u|tr

NACK, order matters for example "-O3 -O0" would be sorted as "-O0 -O3"
and have different meanings.

Cheers Jakob.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to