Re: [PATCH] hsakmt: allow building with gcc 4.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi John,

On 29 March 2016 at 16:39, Bridgman, John <John.Bridgman@xxxxxxx> wrote:
> The hsakmt code requires c99 support, however gcc 4.x defaults to
> c89 while gcc 5 defaults to c11. Adding this macro provides c99
> support on older gcc while not forcing gcc 5 back from c11 to c99.
>
> Signed-off-by: John Bridgman <john.bridgman@xxxxxxx>
> ---
>  configure.ac | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configure.ac b/configure.ac
> index b8e9bea..8f32cbb 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -66,6 +66,7 @@ AC_CANONICAL_HOST
>  AC_PROG_AWK
>  test_CFLAGS=${CFLAGS+set} # We may override autoconf default CFLAGS.
>  AC_PROG_CC
> +AC_PROG_CC_STDC
Some versions of autoconf have AC_PROG_CC_STDC as obsolete, while
others will silently fall back to C89 (according to the autoconf ML).

I've used AC_PROG_CC_C99 and $ac_cv_prog_cc_c99 for libdrm [1]. Did
not have old enough compiler to test it against though :-\

-Emil

[1] https://cgit.freedesktop.org/mesa/drm/commit/?id=e59f00fb43c2b83bdadb17fa35c3018f817a3806
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux