Also link static libs to librt

Change-Id: I0d6c69f0b47a1379b0be85be89e909b776c12678
This commit is contained in:
Uwe L. Korn committed 2017-06-20 10:00:54 +02:00
1 parent bac694df25
commit 44f0cfc5d4
1 file changed
+2
+2
View File
@@ -971,11 +971,13 @@ if (ARROW_JEMALLOC)
# For glibc <2.17 we need to link to librt.
# As we compile with --as-needed by default, the linker will omit this
# dependency if not required.
${PTHREAD_LIBRARY}
rt
)
else()
set(ARROW_JEMALLOC_SHARED_LINK_LIBS
jemalloc_static
${PTHREAD_LIBRARY}
)
endif()
endif()