Add OE-SDK option to Meson
Add option to enable oe-sdk which will setup linker arguments to allow
for building and running tests with the x86 SDK.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I8279b7d862e29235d2d4eae39405cc35a51b762f
diff --git a/phosphor-regulators/test/meson.build b/phosphor-regulators/test/meson.build
index c051097..2a41cd1 100644
--- a/phosphor-regulators/test/meson.build
+++ b/phosphor-regulators/test/meson.build
@@ -27,6 +27,8 @@
gmock,
gtest,
],
+ link_args: dynamic_linker,
+ build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
link_with: [
phosphor_regulators_library,
libi2c_dev_mock