[CMAKE/CLANG]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 9 Sep 2014 18:11:10 +0000 (18:11 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 9 Sep 2014 18:11:10 +0000 (18:11 +0000)
* Globally link mingwex for C modules.
CORE-8516

svn path=/trunk/; revision=64094

reactos/toolchain-clang.cmake

index 5bc72d9..6a41373 100644 (file)
@@ -56,7 +56,7 @@ set(CMAKE_CXX_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
 set(CMAKE_ASM_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
 
 # Don't link with anything by default unless we say so
-set(CMAKE_C_STANDARD_LIBRARIES "-lgcc" CACHE STRING "Standard C Libraries")
+set(CMAKE_C_STANDARD_LIBRARIES "-lmingwex -lgcc" CACHE STRING "Standard C Libraries")
 
 #MARK_AS_ADVANCED(CLEAR CMAKE_CXX_STANDARD_LIBRARIES)
 set(CMAKE_CXX_STANDARD_LIBRARIES "-lgcc" CACHE STRING "Standard C++ Libraries")