[NTOSKRNL] Enforce -fno-common on GCC & CLang builds

This commit is contained in:
Jérôme Gardou 2021-06-24 17:07:26 +02:00 committed by Jérôme Gardou
parent c6e9fea844
commit aa2697df2d

View file

@ -3,6 +3,11 @@ PROJECT(NTOS)
include(ntos.cmake)
if (CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
# Make sure we don't duplicate some symbols
add_compile_options(-fno-common)
endif()
set(NTOSKRNL_SOURCE ${SOURCE})
set(NTOSKRNL_ASM_SOURCE ${ASM_SOURCE})