All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
To: Sven Joachim <svenjoac-Mmb7MZpHnFY@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	633786-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org
Subject: Re: [PATCH] Link against libdrm
Date: Mon, 17 Jun 2013 13:40:22 +0200	[thread overview]
Message-ID: <51BEF5A6.9050308@canonical.com> (raw)
In-Reply-To: <1371148913-25057-1-git-send-email-svenjoac-Mmb7MZpHnFY@public.gmane.org>

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.

      parent reply	other threads:[~2013-06-17 11:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51BEF5A6.9050308@canonical.com \
    --to=maarten.lankhorst-z7wlfzj8ewms+fvcfc7uqw@public.gmane.org \
    --cc=633786-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=svenjoac-Mmb7MZpHnFY@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.