changeset 11975:a20a6e0fb4f8 draft

CMake: blacklist mingw implicit link libraries These also aren't meant to be in pkg-config's Libs.Private.
author Ricardo Constantino <wiiaboo@gmail.com>
date Tue, 16 Jan 2018 17:39:53 +0000
parents 79c5e3bfeb59
children d19ff658c045
files source/CMakeLists.txt
diffstat 1 files changed, 3 insertions(+-), 1 deletions(-) [+]
line wrap: on
line diff
--- a/source/CMakeLists.txt	Tue Jan 30 15:57:08 2018 +0530
+++ b/source/CMakeLists.txt	Tue Jan 16 17:39:53 2018 +0000
@@ -647,7 +647,9 @@ if(X265_LATEST_TAG)
     endforeach()
     if(PLIBLIST)
         # blacklist of libraries that should not be in Libs.private
-        list(REMOVE_ITEM PLIBLIST "-lc" "-lpthread")
+        list(REMOVE_ITEM PLIBLIST "-lc" "-lpthread" "-lmingwex" "-lmingwthrd"
+            "-lmingw32" "-lmoldname" "-lmsvcrt" "-ladvapi32" "-lshell32"
+            "-luser32" "-lkernel32")
         string(REPLACE ";" " " PRIVATE_LIBS "${PLIBLIST}")
     else()
         set(PRIVATE_LIBS "")