From d57ad467e7fdfda5726f15d4c4cf04ec8b8e4e27 Mon Sep 17 00:00:00 2001 From: heitbaum Date: Wed, 6 Oct 2021 23:57:15 +1100 Subject: [PATCH] xorg-intel-gpu-tools: does not build with NDEBUG --- packages/debug/xorg-intel-gpu-tools/package.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/debug/xorg-intel-gpu-tools/package.mk b/packages/debug/xorg-intel-gpu-tools/package.mk index d27151ea93..c25eb6ed9b 100644 --- a/packages/debug/xorg-intel-gpu-tools/package.mk +++ b/packages/debug/xorg-intel-gpu-tools/package.mk @@ -21,3 +21,8 @@ PKG_MESON_OPTS_TARGET="-Dbuild_overlay=false \ -Dwith_libdrm=auto \ -Dwith_libunwind=false \ -Dbuild_runner=false" + +pre_configure_target() { + # xorg-intel-gpu-tools does not build with NDEBUG (requires assert for tests) + export TARGET_CFLAGS=$(echo ${TARGET_CFLAGS} | sed -e "s|-DNDEBUG||g") +}