X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fld-output-def.texi;h=526ccb042bf629ca5b24c365874e33a2dbbbe063;hb=5e2a6b1f1f59b920775fdc38b81d1a389a5089ed;hp=8f9203930a6bca657eac034a9ed6f40fa4652142;hpb=8a4fa1f2d90e1a0cb15f760e91acb5601ba137a1;p=gnulib.git diff --git a/doc/ld-output-def.texi b/doc/ld-output-def.texi index 8f9203930..526ccb042 100644 --- a/doc/ld-output-def.texi +++ b/doc/ld-output-def.texi @@ -15,11 +15,15 @@ The variants we have considered include: @itemize @bullet @item Use DUMPBIN /EXPORTS. +This is explained in @url{http://support.microsoft.com/kb/131313/en-us}. The tool does not generate DEF files directly, so its output needs to -be post processed manually. The tool is documented to potentially not -work with non-MS development tools -(@url{http://support.microsoft.com/kb/131313/en-us}), which is the -case when MinGW is used to build the library. +be post processed manually: +@smallexample +$ @{ echo EXPORTS; \ + dumpbin /EXPORTS libfoo-0.dll | tail -n+20 | awk '@{ print $4 @}'; \ + @} > libfoo-0.def +$ lib /def:libfoo-0.def +@end smallexample @item Use IMPDEF. There is a tool called IMPDEF