fwupd/plugins/flashrom/meson.build
Mario Limonciello 15c9cac1b0 add an rpath to things not compiled into a library
A harmless error shows up in debian packages at build time:
```
dpkg-shlibdeps: warning: cannot find library libfwupdplugin.so needed by debian/fwupd/usr/lib/x86_64-linux-gnu/fwupd-1.8.6/libfu_plugin_flashrom.so (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
```

This doesn't cause a functional problem because libfwupdplugin has already
been loaded by the daemon by the time these libraries are loaded.

In case the `dpkg-shlibdeps` checker becomes more stringent in the future
fix the warning.
2022-10-07 14:16:37 -05:00

28 lines
617 B
Meson

if get_option('plugin_flashrom').enabled() or \
(get_option('plugin_flashrom').auto() and libflashrom.found())
cargs = ['-DG_LOG_DOMAIN="FuPluginFlashrom"']
plugin_quirks += files('flashrom.quirk')
shared_module('fu_plugin_flashrom',
sources: [
'fu-flashrom-device.c',
'fu-flashrom-plugin.c',
'fu-flashrom-cmos.c',
],
include_directories: plugin_incdirs,
install: true,
install_rpath: libdir_pkg,
install_dir: libdir_pkg,
link_with: plugin_libs,
c_args: [
cargs,
'-DLOCALSTATEDIR="' + localstatedir + '"',
],
dependencies: [
plugin_deps,
libflashrom,
],
)
endif