diff mbox series

[RESEND,libdrm] configure.ac fix build error for config.h in autotools

Message ID 1551142856-14749-1-git-send-email-sw0312.kim@samsung.com (mailing list archive)
State New, archived
Headers show
Series [RESEND,libdrm] configure.ac fix build error for config.h in autotools | expand

Commit Message

Seung-Woo Kim Feb. 26, 2019, 1 a.m. UTC
After the commit 0926f0af54d6 ("meson,configure: include config.h
automatically"), there is build error for autotools because
config.h is not included. Fix the error by adding "-include
config.h" to CPPFLAGS instead of CFLAGS from configure.ac.

Reference: https://bugs.freedesktop.org/show_bug.cgi?id=106561
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
---
It looks like missed from mailing list, so I resend.
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Eric Engestrom Feb. 26, 2019, 10:34 a.m. UTC | #1
On Tuesday, 2019-02-26 10:00:56 +0900, Seung-Woo Kim wrote:
> After the commit 0926f0af54d6 ("meson,configure: include config.h
> automatically"), there is build error for autotools because
> config.h is not included. Fix the error by adding "-include
> config.h" to CPPFLAGS instead of CFLAGS from configure.ac.

Thanks!

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 0926f0af54d654b1a958 "meson,configure: include config.h automatically"

I'll push it in moment.

> 
> Reference: https://bugs.freedesktop.org/show_bug.cgi?id=106561
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> ---
> It looks like missed from mailing list, so I resend.
> ---
>  configure.ac |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 7e7c8d3..d72e84a 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -541,7 +541,7 @@ else
>      AC_DEFINE(HAVE_VISIBILITY, 0)
>  fi
>  
> -CFLAGS="$CFLAGS -include config.h"
> +CPPFLAGS="$CPPFLAGS -include config.h"
>  
>  AC_SUBST(WARN_CFLAGS)
>  AC_CONFIG_FILES([
> -- 
> 1.7.4.1
>
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 7e7c8d3..d72e84a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -541,7 +541,7 @@  else
     AC_DEFINE(HAVE_VISIBILITY, 0)
 fi
 
-CFLAGS="$CFLAGS -include config.h"
+CPPFLAGS="$CPPFLAGS -include config.h"
 
 AC_SUBST(WARN_CFLAGS)
 AC_CONFIG_FILES([