Skip to contentSkip to conversation

ui: do not build-depend or link with libdrm, it is not needed

PATCH In review Michael Tokarev 3 participants 3 messages Jun 30, 2018 – Jul 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui: do not build-depend or link with libdrm, it is not needed

Opengl support brings up libdrm. But actually nothing uses this library or includes any of its headers. Just remove checking for it from configure.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 65548df1fc..951ff022dd 100755
@@ -3865,7 +3865,7 @@ libs_softmmu="$libs_softmmu $fdt_libs"
 # opengl probe (for sdl2, gtk, milkymist-tmu2)
 
 if test "$opengl" != "no" ; then
-  opengl_pkgs="epoxy libdrm gbm"
+  opengl_pkgs="epoxy gbm"
   if $pkg_config $opengl_pkgs; then
     opengl_cflags="$($pkg_config --cflags $opengl_pkgs)"
     opengl_libs="$($pkg_config --libs $opengl_pkgs)"
Signature · 1 line
2.11.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Michael Tokarev

Opengl support brings up libdrm. But actually nothing uses this library or includes any of its headers. Just remove checking for it from configure.

libgbm is linked to libdrm, but I don't see call from QEMU to libdrm, son we don't need to check for it (and his headers) indeed.

Quoted 2 lines
Quoted 18 lines
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 65548df1fc..951ff022dd 100755
@@ -3865,7 +3865,7 @@ libs_softmmu="$libs_softmmu $fdt_libs"
 # opengl probe (for sdl2, gtk, milkymist-tmu2)
 
 if test "$opengl" != "no" ; then
-  opengl_pkgs="epoxy libdrm gbm"
+  opengl_pkgs="epoxy gbm"
   if $pkg_config $opengl_pkgs; then
     opengl_cflags="$($pkg_config --cflags $opengl_pkgs)"
     opengl_libs="$($pkg_config --libs $opengl_pkgs)"
#2 lore raw
In reply to Michael Tokarev
Quoted 2 lines · Michael Tokarev

Opengl support brings up libdrm. But actually nothing uses this library or includes any of its headers. Just remove checking for it from configure.

Added to ui queue.

thanks,
Gerd