On 5/3/11 18:13, Krzysztof Kosiński wrote:
2011/3/3 the Adib <theadib@...1439...>:
> So the question is how to modify those files that gnu linker is
> checked and in case on gnu linker we put "-Wl" in front of those
> linkre oprtions?
It's better to specifically check whether the compiler accepts
-Wl,--export-dynamic or --export-dynamic. Just test compile and link
with AC_TRY_LINK, and store the correct flag in EXPORT_DYNAMIC_FLAGS.
By the way, the option exports all symbols in the program, and has to
be used with "reverse dependncies", e.g. when some shared library
contains undefined symbols that need to be defined in the program
itself, as part of its use conventions. Why is it necessary? Is it
used by the DBus bindings?
AFAICT after searching the bzr and SVN logs, it is unrelated to the new
DBUS bindings, but a legacy linker flag from sodipodi:
src/Makefile.am (SVN r4, line 161)
sodipodi_LDFLAGS = -Wl,--export-dynamic $(kdeldflags)
<
http://inkscape.svn.sourceforge.net/viewvc/inkscape/trunk/inkscape/src/Ma...
which was changed to
src/Makefile.am (SVN r243, Patches to make compile on OSX/Darwin)
inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
<
http://inkscape.svn.sourceforge.net/viewvc/inkscape?view=revision&rev...
and later (SVN r2993) moved to
src/Makefile_insert
<
http://inkscape.svn.sourceforge.net/viewvc/inkscape?view=revision&rev...
and later (BZR r7336) moved back to
src/Makefile.am
<
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/7336>
This relates to
707205 Inkscape 0.48.0 fails to build with gcc 4.6
<
https://bugs.launchpad.net/inkscape/+bug/707205>
and the latest comment there by Emil Karlson.
How could it be verified whether this linker option is indeed needed on
any platform which is using a GNU linker?
~suv