meson: conditionally include -ldl in gbm pkg-config file
[mesa.git] / meson.build
index edb49e0fe7c57084a47bd2862079c1ccebccaf48..b79a378776a1c165fcf1c2a77e8b17c557d56645 100644 (file)
@@ -1853,6 +1853,12 @@ if dep_dl.found()
   gl_priv_libs += '-ldl'
 endif
 
+# FIXME: autotools lists this as incomplete
+gbm_priv_libs = []
+if dep_dl.found()
+  gbm_priv_libs += '-ldl'
+endif
+
 pkg = import('pkgconfig')
 
 if host_machine.system() == 'windows'