blob: aa8d814845ed2fb2ef8dd477e4c381274525e887 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From d61f7073b8ce159d21811b291c22b273b040c330 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 12 Feb 2019 12:04:52 +0100
4Subject: [PATCH] Makefile.am: explicitly link with libdrm
5
6Otherwise, a failure happens with gold linker:
7
8../src/.libs/libvirglrenderer.so: error: undefined reference to 'drmPrimeHandleToFD'
9
10https://errors.yoctoproject.org/Errors/Details/222046/
11
12Upstream-Status: Accepted [https://gitlab.freedesktop.org/virgl/virglrenderer/merge_requests/153]
13Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14---
15 src/Makefile.am | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/src/Makefile.am b/src/Makefile.am
19index 9a0a44e..9b668c8 100644
20--- a/src/Makefile.am
21+++ b/src/Makefile.am
22@@ -1,5 +1,6 @@
23 SUBDIRS := gallium/auxiliary
24 AM_LDFLAGS = -lm \
25+ $(LIBDRM_LIBS) \
26 $(GBM_LIBS) \
27 $(EPOXY_LIBS) \
28 $(X11_LIBS) \
29--
302.17.1
31