All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Link against libdrm
@ 2013-06-13 18:41 Sven Joachim
       [not found] ` <1371148913-25057-1-git-send-email-svenjoac-Mmb7MZpHnFY@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Joachim @ 2013-06-13 18:41 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: 633786-61a8vm9lEZVf4u+23C9RwQ, Sven Joachim

The DDX uses symbols from libdrm but currently does not link against
it, but rather relies on indirect linkage from libdrm_nouveau.  This
could lead to insufficient dependencies in distribution packages, seen
in http://bugs.debian.org/633786.

Signed-off-by: Sven Joachim <svenjoac-Mmb7MZpHnFY@public.gmane.org>
---
 configure.ac    | 1 +
 src/Makefile.am | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6f7f870..b54b8cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,7 @@ XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
 XORG_DRIVER_CHECK_EXT(DRI2, [dri2proto >= 2.6])
 
 # Checks for pkg-config packages
+PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.17])
 PKG_CHECK_MODULES(LIBDRM_NOUVEAU, [libdrm_nouveau >= 2.4.25])
 AC_SUBST(LIBDRM_NOUVEAU_CFLAGS)
 AC_SUBST(LIBDRM_NOUVEAU_LIBS)
diff --git a/src/Makefile.am b/src/Makefile.am
index f54e135..5836ead 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,10 +23,10 @@
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@ @LIBUDEV_CFLAGS@ @LIBDRM_NOUVEAU_CFLAGS@
+AM_CFLAGS = @XORG_CFLAGS@ @LIBUDEV_CFLAGS@ @LIBDRM_NOUVEAU_CFLAGS@ @LIBDRM_CFLAGS@
 nouveau_drv_la_LTLIBRARIES = nouveau_drv.la
 nouveau_drv_la_LDFLAGS = -module -avoid-version @LIBDRM_NOUVEAU_LIBS@ \
-			 @LIBUDEV_LIBS@
+			 @LIBUDEV_LIBS@ @LIBDRM_LIBS@
 nouveau_drv_ladir = @moduledir@/drivers
 
 nouveau_drv_la_SOURCES = \
-- 
1.8.3.1

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

* Re: [PATCH] Link against libdrm
       [not found] ` <1371148913-25057-1-git-send-email-svenjoac-Mmb7MZpHnFY@public.gmane.org>
@ 2013-06-17 11:40   ` Maarten Lankhorst
  0 siblings, 0 replies; 2+ messages in thread
From: Maarten Lankhorst @ 2013-06-17 11:40 UTC (permalink / raw)
  To: Sven Joachim
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	633786-61a8vm9lEZVf4u+23C9RwQ

Op 13-06-13 20:41, Sven Joachim schreef:
> The DDX uses symbols from libdrm but currently does not link against
> it, but rather relies on indirect linkage from libdrm_nouveau.  This
> could lead to insufficient dependencies in distribution packages, seen
> in http://bugs.debian.org/633786.
>
> Signed-off-by: Sven Joachim <svenjoac-Mmb7MZpHnFY@public.gmane.org>
> ---
>  configure.ac    | 1 +
>  src/Makefile.am | 4 ++--
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 6f7f870..b54b8cd 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -80,6 +80,7 @@ XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
>  XORG_DRIVER_CHECK_EXT(DRI2, [dri2proto >= 2.6])
>  
>  # Checks for pkg-config packages
> +PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.17])
>  PKG_CHECK_MODULES(LIBDRM_NOUVEAU, [libdrm_nouveau >= 2.4.25])
>  AC_SUBST(LIBDRM_NOUVEAU_CFLAGS)
>  AC_SUBST(LIBDRM_NOUVEAU_LIBS)
> diff --git a/src/Makefile.am b/src/Makefile.am
> index f54e135..5836ead 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -23,10 +23,10 @@
>  # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
>  # _ladir passes a dummy rpath to libtool so the thing will actually link
>  # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
> -AM_CFLAGS = @XORG_CFLAGS@ @LIBUDEV_CFLAGS@ @LIBDRM_NOUVEAU_CFLAGS@
> +AM_CFLAGS = @XORG_CFLAGS@ @LIBUDEV_CFLAGS@ @LIBDRM_NOUVEAU_CFLAGS@ @LIBDRM_CFLAGS@
>  nouveau_drv_la_LTLIBRARIES = nouveau_drv.la
>  nouveau_drv_la_LDFLAGS = -module -avoid-version @LIBDRM_NOUVEAU_LIBS@ \
> -			 @LIBUDEV_LIBS@
> +			 @LIBUDEV_LIBS@ @LIBDRM_LIBS@
>  nouveau_drv_ladir = @moduledir@/drivers
>  
>  nouveau_drv_la_SOURCES = \
Applied, thanks.

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

end of thread, other threads:[~2013-06-17 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-13 18:41 [PATCH] Link against libdrm Sven Joachim
     [not found] ` <1371148913-25057-1-git-send-email-svenjoac-Mmb7MZpHnFY@public.gmane.org>
2013-06-17 11:40   ` Maarten Lankhorst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.