diff --git a/gcc.cmake b/gcc.cmake index 4be1057f50d..4811071e4b6 100644 --- a/gcc.cmake +++ b/gcc.cmake @@ -1,24 +1,22 @@ - if(NOT CMAKE_CROSSCOMPILING) add_definitions(-fshort-wchar) - else() # Linking link_directories("${REACTOS_SOURCE_DIR}/importlibs" ${REACTOS_BINARY_DIR}/lib/3rdparty/mingw) set(CMAKE_C_LINK_EXECUTABLE " -o ") set(CMAKE_CXX_LINK_EXECUTABLE " -o ") -set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -Wl,--enable-auto-image-base -Wl,--kill-at") +set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -Wl,--enable-auto-image-base -Wl,--kill-at -Wl,--disable-auto-import") # -Wl,-T,${REACTOS_SOURCE_DIR}/global.lds # Compiler Core add_definitions(-pipe -fms-extensions) set(CMAKE_C_CREATE_SHARED_LIBRARY " -o ") - +set(CMAKE_CXX_CREATE_SHARED_LIBRARY " -o ") set(CMAKE_RC_CREATE_SHARED_LIBRARY " -o ") # Debugging (Note: DWARF-4 on 4.5.1 when we ship)