Skip to content

Commit

Permalink
media-libs/virglrenderer: fix libdrm linkage #571124
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Jan 18, 2016
1 parent 96bdea5 commit a32fb10
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions media-libs/virglrenderer/files/virglrenderer-0.2.0-libdrm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
https://bugs.gentoo.org/571124

patch sent upstream

From c78953320cae8b39869a8eae41fdec5c4ead30ae Mon Sep 17 00:00:00 2001
From: Mike Frysinger <[email protected]>
Date: Sun, 17 Jan 2016 23:50:21 -0500
Subject: [PATCH] link libvirglrenderer against libdrm

The library uses it (via drmPrimeHandleToFD) so link it in.

URL: https://bugs.gentoo.org/571124
Signed-off-by: Mike Frysinger <[email protected]>
---
src/Makefile.am | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/Makefile.am b/src/Makefile.am
index 61cf879..09be3e9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,6 @@
SUBDIRS := gallium/auxiliary
AM_LDFLAGS = -lgbm -lm -ldl -I./gallium/include \
+ $(LIBDRM_LIBS) \
$(EPOXY_LIBS) \
$(CODE_COVERAGE_LDFLAGS)

--
2.6.2

3 changes: 2 additions & 1 deletion media-libs/virglrenderer/virglrenderer-0.2.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

EAPI="5"

inherit autotools
inherit autotools eutils

if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://people.freedesktop.org/~airlied/virglrenderer"
Expand All @@ -30,6 +30,7 @@ DEPEND="${RDEPEND}
test? ( >=dev-libs/check-0.9.4 )"

src_prepare() {
epatch "${FILESDIR}"/${P}-libdrm.patch #571124
[[ -e configure ]] || eautoreconf
}

Expand Down

0 comments on commit a32fb10

Please sign in to comment.