Merge pull request #5720 from heitbaum/wayland

wayland and xorg-intel-gpu-tools: do not build with NDEBUG
This commit is contained in:
CvH 2021-10-08 16:42:19 +02:00 committed by GitHub
commit 8696f6d824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -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")
}

View File

@ -26,6 +26,11 @@ PKG_CONFIGURE_OPTS_TARGET="--with-sysroot=${SYSROOT_PREFIX} \
--disable-documentation \
--with-gnu-ld"
pre_configure_target() {
# wayland does not build with NDEBUG (requires assert for tests)
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-DNDEBUG||g")
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin
rm -rf ${INSTALL}/usr/share