meson: allow empty sources when using link_whole

meson used to get grumpy if the sources list was empty, even when using
--whole-archive (link_whole). In more recent versions that's not true,
so remove the workaround.

Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker
2018-04-16 14:39:59 -07:00
parent 92550d9b16
commit db90c8627c
+1 -8
View File
@@ -157,17 +157,10 @@ libglx = static_library(
build_by_default : false,
)
# workaround for bug #2180
dummy_c = custom_target(
'dummy_c',
output : 'dummy.c',
command : [prog_touch, '@OUTPUT@'],
)
if with_glx == 'dri'
libgl = shared_library(
gl_lib_name,
dummy_c, # workaround for bug #2180
[],
include_directories : [inc_common, inc_glapi, inc_loader, inc_gl_internal],
link_with : [libglapi_static, libglapi],
link_whole : libglx,