meson: conditionally include -ldl in gbm pkg-config file
authorJonathan Gray <jsg@jsg.id.au>
Fri, 6 Dec 2019 06:25:58 +0000 (17:25 +1100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 09:14:57 +0000 (09:14 +0000)
commit0398caa97fa6ab9a0eac29dfca38b3fceb2cc026
tree91293e09b06c9e64155e647ac86aa5f7cffab482
parentc97af23b13c55c27f5fe381793ee9a3d6f3a2280
meson: conditionally include -ldl in gbm pkg-config file

Follow libGL and only include -ldl in gbm pkg-config file if libdl was
actually found.  Many systems have these functions in libc and don't
have libdl.

Fixes: 816bf7d1644 ("meson: build gbm")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
meson.build
src/gbm/meson.build