Author: hbelusca
Date: Sat Aug 10 15:00:50 2013
New Revision: 59686
URL:
http://svn.reactos.org/svn/reactos?rev=59686&view=rev
Log:
[SPEC2DEF]
In GCC builds, LD sucks, and therefore, use NAME instead of LIBRARY to prevent that GNU
crap from marking executables as dlls just because they export stuff, which is needed by
both ntoskrnl and ntvdm.
Tested and approved by Aleksandar Aandrejevic a.k.a. [TheFlash], gigaherz and Amine
Khaldi.
See:
http://msdn.microsoft.com/en-us/library/28d6s79h.aspx - "Module-Definition (.Def)
Files"
http://msdn.microsoft.com/en-us/library/30fw19zw.aspx - For a description of the LIBRARY
keyword
http://msdn.microsoft.com/en-us/library/03b3wfkt.aspx - For a description of the NAME
keyword
http://sourceware.org/binutils/docs-2.16/binutils/def-file-format.html - "The format
of the dlltool .def file" (GCC)
for more information.
Modified:
trunk/reactos/tools/spec2def/spec2def.c
Modified: trunk/reactos/tools/spec2def/spec2def.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/spec2def/spec2def.c?…
==============================================================================
--- trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] (original)
+++ trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] Sat Aug 10 15:00:50 2013
@@ -306,7 +306,7 @@
{
fprintf(file,
"; File generated automatically, do not edit!\n\n"
- "LIBRARY %s\n\n"
+ "NAME %s\n\n"
"EXPORTS\n",
libname);
}