Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From d61f7073b8ce159d21811b291c22b273b040c330 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 12 Feb 2019 12:04:52 +0100 |
| 4 | Subject: [PATCH] Makefile.am: explicitly link with libdrm |
| 5 | |
| 6 | Otherwise, a failure happens with gold linker: |
| 7 | |
| 8 | ../src/.libs/libvirglrenderer.so: error: undefined reference to 'drmPrimeHandleToFD' |
| 9 | |
| 10 | https://errors.yoctoproject.org/Errors/Details/222046/ |
| 11 | |
| 12 | Upstream-Status: Accepted [https://gitlab.freedesktop.org/virgl/virglrenderer/merge_requests/153] |
| 13 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 14 | --- |
| 15 | src/Makefile.am | 1 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/src/Makefile.am b/src/Makefile.am |
| 19 | index 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 | -- |
| 30 | 2.17.1 |
| 31 | |