configure: add LIBDRM to extralibs_avutil
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Tue, 11 Sep 2018 20:29:32 +0000 (22:29 +0200)
committerJames Almer <jamrial@gmail.com>
Tue, 11 Sep 2018 21:31:34 +0000 (18:31 -0300)
commitc50dc77ac708e98d02da7c422a6b9cbf9f565aa5
tree36e124082f677f7a3601f6638a43f50240c2c26e
parentbc2301429e9c779237e43acf913331af018211f2
configure: add LIBDRM to extralibs_avutil

When static linking programs using ffmpeg libraries, if linking against
libavutil, -ldrm is listed before -lavutil. This leads to linking failure
due to undefined reference of drmGetVersion() and drmFreeVersion().
This is why when pkg-config create libavutil.pc doesn't append -ldrm
after -lavutil.

Create LIBDRM=-ldrm in case libdrm is enabled and add $LIBDRM to
extralibs_avutil.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: James Almer <jamrial@gmail.com>
configure