mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 04:42:00 +00:00
[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
This commit is contained in:
parent
206be3cc65
commit
c6b4ad3605
|
@ -306,7 +306,7 @@ OutputHeader_def(FILE *file, char *libname)
|
||||||
{
|
{
|
||||||
fprintf(file,
|
fprintf(file,
|
||||||
"; File generated automatically, do not edit!\n\n"
|
"; File generated automatically, do not edit!\n\n"
|
||||||
"LIBRARY %s\n\n"
|
"NAME %s\n\n"
|
||||||
"EXPORTS\n",
|
"EXPORTS\n",
|
||||||
libname);
|
libname);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue