summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Nolden <nolden@kde.org>2016-05-28 13:30:33 +0200
committerRalf Nolden <nolden@kde.org>2016-05-31 13:32:13 +0000
commit79d3d49c4c4bf1d07f377d24d8c6e571abe80355 (patch)
tree739348da632d93200c0b54b0c88ff7b3c436e365
parentcd1fc0b6ed27906c15b8f0e7f7e1b8cab147a3c3 (diff)
OpenBSD: librt.so is not available on system
OpenBSD does not provide librt.so for the sensors module, which leads to linker errors in this case. Disable linking to librt.so by adding !openbsd to the list of OSes not having it. Change-Id: If7b33eb33b4027be79bce4bb3272bef3a5b7d832 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/plugins/sensors/dummy/dummy.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sensors/dummy/dummy.pro b/src/plugins/sensors/dummy/dummy.pro
index b4ef2fda..6eab4912 100644
--- a/src/plugins/sensors/dummy/dummy.pro
+++ b/src/plugins/sensors/dummy/dummy.pro
@@ -12,7 +12,7 @@ SOURCES += dummycommon.cpp\
OTHER_FILES = plugin.json
-unix:!mac:!qnx:!android:LIBS+=-lrt
+unix:!darwin:!qnx:!android:!openbsd: LIBS += -lrt
PLUGIN_TYPE = sensors
PLUGIN_CLASS_NAME = dummySensorPlugin