From c6b4ad3605579d2179c4fb649e9b7cbe1019f244 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 10 Aug 2013 15:00:50 +0000 Subject: [PATCH] [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. svn path=/trunk/; revision=59686 --- reactos/tools/spec2def/spec2def.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/tools/spec2def/spec2def.c b/reactos/tools/spec2def/spec2def.c index e5cee3c85ec..138f39d014e 100644 --- a/reactos/tools/spec2def/spec2def.c +++ b/reactos/tools/spec2def/spec2def.c @@ -306,7 +306,7 @@ OutputHeader_def(FILE *file, char *libname) { fprintf(file, "; File generated automatically, do not edit!\n\n" - "LIBRARY %s\n\n" + "NAME %s\n\n" "EXPORTS\n", libname); } -- 2.17.1