From a7f854bce5079608af4cc6c3653b6d71db529cc7 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Wed, 14 Sep 2022 17:03:34 -0600 Subject: [PATCH] package/mesa3d: set cpp_rtti option This needs to be set based on BR2_PACKAGE_LLVM_RTTI being set. Fixes: - http://autobuild.buildroot.net/results/e2ebc9a73ed421aa6be44fe41bb5224cc12f699d Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- package/mesa3d/mesa3d.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 0630f43df1..daefd6f6d5 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -48,6 +48,11 @@ ifeq ($(BR2_PACKAGE_MESA3D_LLVM),y) MESA3D_DEPENDENCIES += host-llvm llvm MESA3D_MESON_EXTRA_BINARIES += llvm-config='$(STAGING_DIR)/usr/bin/llvm-config' MESA3D_CONF_OPTS += -Dllvm=enabled +ifeq ($(BR2_PACKAGE_LLVM_RTTI),y) +MESA3D_CONF_OPTS += -Dcpp_rtti=true +else +MESA3D_CONF_OPTS += -Dcpp_rtti=false +endif else # Avoid automatic search of llvm-config MESA3D_CONF_OPTS += -Dllvm=disabled