Skip to contentSkip to conversation

package/mesa3d: Disable static build of DRI drivers if BR2_SHARED_STATIC_LIBS=y

PATCH New Bernd Kuhls 2 participants 2 messages Jun 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mesa3d: Disable static build of DRI drivers if BR2_SHARED_STATIC_LIBS=y

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

---
 package/mesa3d/mesa3d.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/mesa3d/mesa3d.mk +5 -0
index ebd674f..5ba9d6e 100644
@@ -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
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 package/mesa3d: Disable static build of DRI drivers if BR2_SHARED_STATIC_LIBS=y

Hi Bernd,

Quoted 21 lines · Bernd Kuhls

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

---
 package/mesa3d/mesa3d.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/mesa3d/mesa3d.mk +0 -0
index ebd674f..5ba9d6e 100644

package/mesa3d/mesa3d.mk MESA3D_CONF_OPTS += \ · line 130

Quoted 8 lines
package/mesa3d/mesa3d.mk +5 -0
@@ -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

Since mesa3d depends on !BR2_STATIC_LIBS already, why not add --disable-static unconditionally?

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -