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.
This commit is contained in:
John Szakmeister
2015-02-24 14:00:02 -05:00
parent 9bc1e4335c
commit e077f4ee99

View File

@@ -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.