From f67cb00c9d8074ebe29214464ffe370f671635c7 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 21 Jul 2024 13:30:51 +0000 Subject: don't build libgallium_drv_video when WITH_VAAPI==no ok matthieu@ rsadowski@ --- lib/mesa/mk/Makefile | 4 +++- lib/mesa/mk/libgallium_drv_video/Makefile | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/mesa') diff --git a/lib/mesa/mk/Makefile b/lib/mesa/mk/Makefile index f48655806..a1bf7606d 100644 --- a/lib/mesa/mk/Makefile +++ b/lib/mesa/mk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2024/07/19 14:42:33 rsadowski Exp $ +# $OpenBSD: Makefile,v 1.10 2024/07/21 13:30:50 jsg Exp $ .include "config.mk" @@ -102,6 +102,8 @@ SUBDIR+= libglapi libgbm libEGL libGL libGLESv1_CM libGLESv2 libOSMesa SUBDIR+= libgallium_dri +.if ${WITH_VAAPI} == "yes" || make(obj) SUBDIR+= libgallium_drv_video +.endif .include diff --git a/lib/mesa/mk/libgallium_drv_video/Makefile b/lib/mesa/mk/libgallium_drv_video/Makefile index 998158836..3c35f28e5 100644 --- a/lib/mesa/mk/libgallium_drv_video/Makefile +++ b/lib/mesa/mk/libgallium_drv_video/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2024/07/19 14:40:46 rsadowski Exp $ +# $OpenBSD: Makefile,v 1.2 2024/07/21 13:30:50 jsg Exp $ LIB= gallium_drv_video @@ -81,10 +81,7 @@ SLIBS+= libradeonwinsys .endif LDADD+= -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,--whole-archive -Wl,--start-group - -.if ${WITH_VAAPI} == "yes" LDADD+= ${.CURDIR}/../libva_st/${__objdir}/libva_st.a -Wl,--no-whole-archive -Wl,-z,origin -.endif .if ${WITH_GALLIUM_R600} == "yes" SLIBS+= libr600 -- cgit v1.2.3