Author: tkreuzer
Date: Tue Dec 28 12:42:05 2010
New Revision: 50189
URL:
http://svn.reactos.org/svn/reactos?rev=50189&view=rev
Log:
[CMAKE]
Fix stdcall entry points for x86
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=501…
==============================================================================
--- branches/cmake-bringup/gcc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/gcc.cmake [iso-8859-1] Tue Dec 28 12:42:05 2010
@@ -105,10 +105,11 @@
if(${ENTRYPOINT} STREQUAL "0")
add_linkerflag(${MODULE} "-Wl,-entry,0")
elseif(ARCH MATCHES i386)
+ set(_entrysymbol _${ENTRYPOINT})
if (${ARGC} GREATER 2)
- set(ENTRYPOINT ${ENTRYPOINT}@${ARGV2})
- endif()
- add_linkerflag(${MODULE} "-Wl,-entry,_${ENTRYPOINT}")
+ set(_entrysymbol ${_entrysymbol}@${ARGV2})
+ endif()
+ add_linkerflag(${MODULE} "-Wl,-entry,${_entrysymbol}")
else()
add_linkerflag(${MODULE} "-Wl,-entry,${ENTRYPOINT}")
endif()