Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mesa3d: Disable static build of DRI drivers if BR2_SHARED_STATIC_LIBS=y
@ 2016-06-25 11:42 Bernd Kuhls
  2016-06-25 20:13 ` Baruch Siach
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-06-25 11:42 UTC (permalink / raw)
  To: buildroot

Using this defconfig

BR2_SHARED_STATIC_LIBS=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_I965=y

building DRI drivers in mesa3d fails with this message:

configure: error: Cannot use static libraries for DRI drivers

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mesa3d/mesa3d.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index ebd674f..5ba9d6e 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -123,6 +123,11 @@ MESA3D_CONF_OPTS += \
 	--enable-shared-glapi \
 	--enable-driglx-direct \
 	--with-dri-drivers=$(subst $(space),$(comma),$(MESA3D_DRI_DRIVERS-y))
+# fixes the following configure error:
+# configure: error: Cannot use static libraries for DRI drivers
+ifeq ($(BR2_SHARED_STATIC_LIBS),y)
+MESA3D_CONF_OPTS += --disable-static
+endif
 endif
 
 # APIs
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-25 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-25 11:42 [Buildroot] [PATCH 1/1] package/mesa3d: Disable static build of DRI drivers if BR2_SHARED_STATIC_LIBS=y Bernd Kuhls
2016-06-25 20:13 ` Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox