gendef: Print --kill-at information only for i386
Generated def file has calling convention decoration only for i386 PE files
which are detected by the has_atdecoration() function.
Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-tools/gendef/src/gendef.c b/mingw-w64-tools/gendef/src/gendef.c
index c66b28e..c25734c 100644
--- a/mingw-w64-tools/gendef/src/gendef.c
+++ b/mingw-w64-tools/gendef/src/gendef.c
@@ -728,8 +728,11 @@
fprintf(stderr," * failed to create %s ...\n",fnoutput);
return;
}
- fprintf (fp,";\n; Definition file of %s\n; Automatic generated by gendef %s\n; written by Kai Tietz 2008\n; The def file has to be processed by --kill-at (-k) option of dlltool or ld\n;\n",
+ fprintf (fp,";\n; Definition file of %s\n; Automatic generated by gendef %s\n; written by Kai Tietz 2008\n",
fndllname, VERSION);
+ if (has_atdecoration ())
+ fprintf (fp,"; The def file has to be processed by --kill-at (-k) option of dlltool or ld\n");
+ fprintf (fp,";\n");
fprintf (fp,"LIBRARY \"%s\"\nEXPORTS\n",fndllname);
while ((exp = gExp) != NULL)
{