compiling.xml: Add note and fix gcc example
authorSebastian Geiger <sbastig@gmx.net>
Thu, 9 Aug 2012 21:01:29 +0000 (23:01 +0200)
committerJavier Jardón <jjardon@gnome.org>
Tue, 14 Aug 2012 17:34:50 +0000 (02:34 +0900)
commit6b201748b5f71f74af02ba8c01fd4c53750f910a
treeddc5366f8d3fb89c27a79248534b0f94847e79f8
parente930e3b3aac2fe4d62996d8033121a40153f2da3
compiling.xml: Add note and fix gcc example

Because of the '--as-needed' default option
for the linker, the linking will fail, if the
file name appears after any of the options or
the pkg-config invocation.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681854
docs/reference/glib/compiling.xml