summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@nijhof.co.uk>2014-05-19 07:00:53 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-05-19 09:33:28 +0200
commit9fdb7bf1d99f8311c4589a834e909062f66680d8 (patch)
tree79d83f676900e3983b8a7b64b9ba2118d679df76
parent9ccef311aae891daf4436e6d89117bfae3d95959 (diff)
libavmedia.so needs to link to librt under Linux
libavmedia.so links to libopencollada2gltf.a, which contains a reference to clock_gettime(). And for clock_gettime one needs to link to librt, under Linux, at least. So add -lrt when linking libavmedia.so. Change-Id: I28547c6216738b44701baaed7eaf44f5ca97e98a
-rw-r--r--avmedia/Library_avmedia.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/avmedia/Library_avmedia.mk b/avmedia/Library_avmedia.mk
index 48f36c4c7f72..40ba35bbf976 100644
--- a/avmedia/Library_avmedia.mk
+++ b/avmedia/Library_avmedia.mk
@@ -50,6 +50,12 @@ $(eval $(call gb_Library_use_libraries,avmedia,\
ifneq (,$(filter COLLADA2GLTF,$(BUILD_TYPE)))
$(eval $(call gb_Library_set_warnings_not_errors,avmedia))
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Library_add_libs,avmedia,\
+ -lrt \
+))
+endif
+
$(eval $(call gb_Library_use_externals,avmedia,\
collada2gltf \
libxml2 \