Author: tkreuzer
Date: Wed Jan 19 11:33:27 2011
New Revision: 50427
URL:
http://svn.reactos.org/svn/reactos?rev=50427&view=rev
Log:
[CMAKE]
Don't add importlibs folder as link directory for anything other than i386 builds
Modified:
branches/cmake-bringup/gcc.cmake
Modified: branches/cmake-bringup/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/gcc.cmake?rev=504…
==============================================================================
--- branches/cmake-bringup/gcc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/gcc.cmake [iso-8859-1] Wed Jan 19 11:33:27 2011
@@ -2,7 +2,10 @@
if(CMAKE_CROSSCOMPILING)
# Linking
-link_directories("${REACTOS_SOURCE_DIR}/importlibs"
${REACTOS_BINARY_DIR}/lib/3rdparty/mingw)
+if(ARCH MATCHES i386)
+link_directories("${REACTOS_SOURCE_DIR}/importlibs")
+endif()
+link_directories(${REACTOS_BINARY_DIR}/lib/3rdparty/mingw)
set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS>
<CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET>
<LINK_LIBRARIES>")
set(CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_CXX_COMPILER> <FLAGS>
<CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET>
<LINK_LIBRARIES>")
set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -Wl,--enable-auto-image-base
-Wl,--disable-auto-import")