[2/2] Document usage of import libraries created by dlltool

Message ID 1300799236-45448-2-git-send-email-martin@martin.st
State Committed
Commit e971d81364e93feae8c399075a3be2643192e031
Headers show

Commit Message

Martin Storsjö March 22, 2011, 1:07 p.m.
---
 doc/general.texi |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Comments

Luca Barbato March 22, 2011, 2:52 p.m. | #1
On 3/22/11 2:07 PM, Martin Storsjö wrote:
> ---
>   doc/general.texi |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/doc/general.texi b/doc/general.texi
> index f6c61a2..1bce042 100644
> --- a/doc/general.texi
> +++ b/doc/general.texi
> @@ -1005,6 +1005,12 @@ libavutil/pixdesc.h you should have:
>   extern __declspec(dllimport) const AVPixFmtDescriptor av_pix_fmt_descriptors[];
>   @end example
>
> +Note that using import libraries created by dlltool requires
> +the linker optimization option to be set to
> +"References: Keep Unreferenced Data (/OPT:NOREF)", otherwise
> +the resulting binaries will fail during runtime. This isn't
> +required when using import libraries generated by lib.exe.
> +
>   @subsection Cross compilation for Windows with Linux
>
>   You must use the MinGW cross compilation tools available at

Ok as well. Thanks for the support ^^;

Patch

diff --git a/doc/general.texi b/doc/general.texi
index f6c61a2..1bce042 100644
--- a/doc/general.texi
+++ b/doc/general.texi
@@ -1005,6 +1005,12 @@  libavutil/pixdesc.h you should have:
 extern __declspec(dllimport) const AVPixFmtDescriptor av_pix_fmt_descriptors[];
 @end example
 
+Note that using import libraries created by dlltool requires
+the linker optimization option to be set to
+"References: Keep Unreferenced Data (/OPT:NOREF)", otherwise
+the resulting binaries will fail during runtime. This isn't
+required when using import libraries generated by lib.exe.
+
 @subsection Cross compilation for Windows with Linux
 
 You must use the MinGW cross compilation tools available at