summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-25 20:26:48 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-28 10:22:06 +0200
commit9a54d3c9dae2afa9f6b64cf251de21dfb60dd30d (patch)
tree93e9f760e6d5e5e0164e3fd4c856dd123a1a59e2 /sc
parentf19d8a784510837066b7ba4c4f0691a4af8e9874 (diff)
Need -lrt for clock_gettime() with older glibc versions
Change-Id: Id134b05de3a81dd246baf8743c32fa8eb1e37935
Diffstat (limited to 'sc')
-rw-r--r--sc/Library_sc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/Library_sc.mk b/sc/Library_sc.mk
index e17b4ca3e94a..a3373b05d384 100644
--- a/sc/Library_sc.mk
+++ b/sc/Library_sc.mk
@@ -676,6 +676,12 @@ $(eval $(call gb_Library_add_exception_objects,sc,\
sc/source/core/opencl/op_spreadsheet \
))
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Library_add_libs,sc,\
+ -lrt \
+))
+endif
+
endif
$(eval $(call gb_SdiTarget_SdiTarget,sc/sdi/scslots,sc/sdi/scalc))