aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2015-02-24 14:00:02 -0500
committerJohn Szakmeister <john@szakmeister.net>2015-02-24 14:01:25 -0500
commite077f4ee99d7e24e6921b588640ccf87425f33eb (patch)
tree7db0f795072b8b4ca33136cd3cf1460d407fda4b
parent9bc1e4335c44c00786de9dbaf3c787c5f5475c9e (diff)
downloadrneovim-e077f4ee99d7e24e6921b588640ccf87425f33eb.tar.gz
rneovim-e077f4ee99d7e24e6921b588640ccf87425f33eb.tar.bz2
rneovim-e077f4ee99d7e24e6921b588640ccf87425f33eb.zip
build: filter off libuv from PC_LIBUV_LIBRARIES
Otherwise, the -rdynamic that is being passed on the command line will require a dynamic link, even though we often want a static one.
-rw-r--r--cmake/FindLibUV.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/FindLibUV.cmake b/cmake/FindLibUV.cmake
index 62acff5dbc..d7695d2c6d 100644
--- a/cmake/FindLibUV.cmake
+++ b/cmake/FindLibUV.cmake
@@ -39,7 +39,11 @@ find_library(LIBUV_LIBRARY NAMES ${LIBUV_NAMES}
mark_as_advanced(LIBUV_INCLUDE_DIR LIBUV_LIBRARY)
-set(LIBUV_LIBRARIES ${LIBUV_LIBRARY})
+if(PC_LIBUV_LIBRARIES)
+ list(REMOVE_ITEM PC_LIBUV_LIBRARIES uv)
+endif()
+
+set(LIBUV_LIBRARIES ${LIBUV_LIBRARY} ${PC_LIBUV_LIBRARIES})
set(LIBUV_INCLUDE_DIRS ${LIBUV_INCLUDE_DIR})
# Deal with the fact that libuv.pc is missing important dependency information.