build: do not link libdrm without DRM backend
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 6 Apr 2017 10:57:57 +0000 (13:57 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 7 Apr 2017 09:02:47 +0000 (12:02 +0300)
commit4e3522bbd59f97661ab2e8e56166a1fd535ca14c
treecbfc44d3815eb4093399bc3662675fb736a2a433
parent2667e9e399fa553cb53c38a4c7a061a81ce4e0f7
build: do not link libdrm without DRM backend

The pkg-config test for LIBDRM is independent of whether the DRM backend
is enabled or not. Therefore it is possible to have libdrm available and
found, even though it is not needed.

Do not link libdrm.so into the launchers unless it is really needed,
that is, DRM compositor is built. Otherwise you end up with
fbdev-backend.so and weston-launch depending on libdrm.so.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Makefile.am