Author: jgardou
Date: Tue Apr 2 18:42:39 2013
New Revision: 58648
URL:
http://svn.reactos.org/svn/reactos?rev=58648&view=rev
Log:
[CMAKE]
- Do not link drivers to supc++
Modified:
trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=58648&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Tue Apr 2 18:42:39 2013
@@ -199,7 +199,11 @@
function(set_module_type_toolchain MODULE TYPE)
if(IS_CPP)
- target_link_libraries(${MODULE} -lstdc++ -lsupc++ -lgcc -lmingwex)
+ if((${TYPE} STREQUAL "kernelmodedriver") OR (${TYPE} STREQUAL
"wdmdriver"))
+ target_link_libraries(${MODULE} -lgcc)
+ else()
+ target_link_libraries(${MODULE} -lstdc++ -lsupc++ -lgcc -lmingwex)
+ endif()
endif()
if((${TYPE} STREQUAL "kernelmodedriver") OR (${TYPE} STREQUAL
"wdmdriver"))