Document gmodule-no-export-2.0
authorMatthias Clasen <mclasen@redhat.com>
Wed, 5 Oct 2005 20:45:50 +0000 (20:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 5 Oct 2005 20:45:50 +0000 (20:45 +0000)
2005-10-05  Matthias Clasen  <mclasen@redhat.com>

* glib/compiling.sgml: Document gmodule-no-export-2.0

docs/reference/ChangeLog
docs/reference/glib/compiling.sgml

index c9db03540b5602708a95a097c7754b93979a660a..a0573853b9d9438832552d77f6e336e83fe6b677 100644 (file)
@@ -1,3 +1,7 @@
+2005-10-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/compiling.sgml: Document gmodule-no-export-2.0
+
 2005-10-01  Davyd Madeley  <davyd@fugro-fsi.com.au>
 
        * glib/tmpl/string_utils.sgml: Minor documentation improvements for
index 38a6661992e31643ca6d07284f82a725b8d7f045..2bd1a5f70daf9e7151a5deaeb0c6acb9f9f7f44e 100644 (file)
@@ -32,16 +32,25 @@ $ pkg-config --libs glib-2.0
 </programlisting>
 </para>
 <para>
-If your application uses modules, threads or <structname>GObject</structname>
+If your application uses threads or <structname>GObject</structname>
 features, it must be compiled and linked with the options returned by the 
 following <application>pkg-config</application> invocations: 
 <programlisting>
-$ pkg-config --cflags --libs gmodule-2.0 
 $ pkg-config --cflags --libs gthread-2.0
 $ pkg-config --cflags --libs gobject-2.0
 </programlisting>
 </para>
 <para>
+If your application uses modules, it must be compiled and linked with the options 
+returned by one of the following <application>pkg-config</application> invocations: 
+<programlisting>
+$ pkg-config --cflags --libs gmodule-no-export-2.0 
+$ pkg-config --cflags --libs gmodule-2.0 
+</programlisting>
+The difference between the two is that gmodule-2.0 adds <option>--export-dynamic</option> 
+to the linker flags, which is often not needed.
+</para>
+<para>
 The simplest way to compile a program is to use the "backticks"
 feature of the shell. If you enclose a command in backticks
 (<emphasis>not single quotes</emphasis>), then its output will be