drm_hwcomposer: meson: Use link_whole for linking common code with HWC3
Otherwise, the backend's static initializers are not included in the
final binary, which causes drm_hwc to crash.
Change-Id: I0013bc8e99394dd9183ca4a318edb98b6e43887f
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
diff --git a/hwc3/meson.build b/hwc3/meson.build
index 2486212..291c71a 100644
--- a/hwc3/meson.build
+++ b/hwc3/meson.build
@@ -14,7 +14,7 @@
cpp_args : common_cpp_flags + hwc2_cpp_flags,
dependencies : deps,
install : true,
- link_with: [drmhwc_common, drmhwc_hwc2_common],
+ link_whole: [drmhwc_common, drmhwc_hwc2_common],
install_dir : get_option('bindir') / 'hw',
include_directories: inc_include,
)