aboutsummaryrefslogtreecommitdiff
path: root/package/libdrm/libdrm.mk
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2015-07-02 20:05:02 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-04 14:14:01 +0200
commit24147efb21de3f38d919ee45cf997434b096539c (patch)
tree9d442cdb0c5852fb032e473b811fe1471a5a157c /package/libdrm/libdrm.mk
parent0d67ffe596dc195ea5389485f5ca5b374a943611 (diff)
downloadbuildroot-24147efb21de3f38d919ee45cf997434b096539c.tar.gz
buildroot-24147efb21de3f38d919ee45cf997434b096539c.tar.bz2
package/libdrm: fix building if GCC's C standard is not gnu99
Fixes checking for /home/fli4l/buildroot/output/host/usr/bin/i586-buildroot-linux-uclibc-gcc option to accept ISO C99... unsupported configure: error: Building libdrm requires C99 enabled compiler using this defconfig BR2_KERNEL_HEADERS_4_0=y BR2_BINUTILS_VERSION_2_25=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_PACKAGE_LIBDRM=y Patch inspired by http://git.buildroot.net/buildroot/commit/?id=5cf5b390385fb6325485e37dc9d38e1e3ac1f091 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libdrm/libdrm.mk')
-rw-r--r--package/libdrm/libdrm.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/libdrm/libdrm.mk b/package/libdrm/libdrm.mk
index 4cca645422..1768214a49 100644
--- a/package/libdrm/libdrm.mk
+++ b/package/libdrm/libdrm.mk
@@ -19,6 +19,8 @@ LIBDRM_CONF_OPTS = \
--disable-cairo-tests \
--disable-manpages
+LIBDRM_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
+
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
LIBDRM_CONF_OPTS += --enable-intel
LIBDRM_DEPENDENCIES += libatomic_ops libpciaccess