Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/doc/dll.sgml')
-rw-r--r--winsup/doc/dll.sgml16
1 files changed, 12 insertions, 4 deletions
diff --git a/winsup/doc/dll.sgml b/winsup/doc/dll.sgml
index 7bb10829c..a44129b3c 100644
--- a/winsup/doc/dll.sgml
+++ b/winsup/doc/dll.sgml
@@ -91,13 +91,21 @@ you will probably want to use the complete syntax:</para>
-Wl,--out-implib=lib${module}.dll.a \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
- -Wl,--whole-archive ${old_lib} \
+ -Wl,--whole-archive ${old_libs} \
-Wl,--no-whole-archive ${dependency_libs}</screen>
-<para>Where ${module} is the name of your DLL, ${old_lib} are all
+<para>
+The name of your library is <literal>${module}</literal>, prefixed with
+<literal>cyg</literal> for the DLL and <literal>lib</literal> for the
+import library. Cygwin DLLs use the <literal>cyg</literal> prefix to
+differentiate them from native-Windows MinGW DLLs, see
+<ulink URL="http://mingw.org">the MinGW website</ulink> for more details.
+<literal>${old_libs}</literal> are all
your object files, bundled together in static libs or single object
-files and the ${dependency_libs} are import libs you need to
-link against, e.g '-lpng -lz -L/usr/local/special -lmyspeciallib'.</para>
+files and the <literal>${dependency_libs}</literal> are import libs you
+need to link against, e.g
+<userinput>'-lpng -lz -L/usr/local/special -lmyspeciallib'</userinput>.
+</para>
</sect2>
<sect2 id="dll-link"><title>Linking Against DLLs</title>