[CMAKE]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 19 Sep 2010 16:16:01 +0000 (16:16 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 19 Sep 2010 16:16:01 +0000 (16:16 +0000)
Fix minicd boot regression.
Remove unneeded usetup link to msvcrt.

svn path=/branches/cmake-bringup/; revision=48814

base/setup/usetup/CMakeLists.txt
toolchain-mingw32.cmake

index e832044..8d2598f 100644 (file)
@@ -35,8 +35,7 @@ target_link_libraries(usetup
     newinflib
     ext2lib
     vfatlib
-    mingw_common
-    -lmsvcrt)
+    mingw_common)
 
 set_target_properties(usetup PROPERTIES LINK_FLAGS "-Wl,-entry,_NtProcessStartup@4")
 
index 0395530..c3e20e4 100644 (file)
@@ -31,8 +31,11 @@ SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -i <SOURCE> <CMAKE_C_LINK_FLAGS
 
 # Use stdcall fixups, and don't link with anything by default unless we say so
 set(CMAKE_C_STANDARD_LIBRARIES -lgcc CACHE STRING "libgcc") # We should add the environment libgcc here
-#-Wl,-T,${REACTOS_SOURCE_DIR}/global.lds
+if(ARCH MATCHES i386)
+set(CMAKE_SHARED_LINKER_FLAGS_INIT "-nodefaultlibs -nostdlib -Wl,--enable-auto-image-base -Wl,--enable-stdcall-fixup -Wl,--kill-at -Wl,-T,${REACTOS_SOURCE_DIR}/global.lds")
+elseif(ARCH MATCHES amd64)
 set(CMAKE_SHARED_LINKER_FLAGS_INIT "-nodefaultlibs -nostdlib -Wl,--enable-auto-image-base -Wl,--enable-stdcall-fixup -Wl,--kill-at")
+endif(ARCH MATCHES i386)
 
 # adjust the default behaviour of the FIND_XXX() commands:
 # search headers and libraries in the target environment, search