- Do not link drivers to supc++

svn path=/trunk/; revision=58648
This commit is contained in:
Jérôme Gardou 2013-04-02 18:42:39 +00:00
parent 06720167a3
commit a6a0236a4f

View file

@ -199,7 +199,11 @@ endfunction()
function(set_module_type_toolchain MODULE TYPE) function(set_module_type_toolchain MODULE TYPE)
if(IS_CPP) 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() endif()
if((${TYPE} STREQUAL "kernelmodedriver") OR (${TYPE} STREQUAL "wdmdriver")) if((${TYPE} STREQUAL "kernelmodedriver") OR (${TYPE} STREQUAL "wdmdriver"))