Enrico Forestieri a écrit :
On Wed, Apr 12, 2006 at 02:45:00PM +0200, Abdelrazak Younes wrote:
Enrico Forestieri a écrit :
That's -Wl,--export-all-symbols and simply passes --export-all-symbols
to the linker. It does no good and simply will increase your linking
time. I suggest that you get rid of it.
[..]
I was not talking about the warnings, sorry for the confusion.
What I said only applies to the final link step. I observed that
with -Wl,--export-all-symbols, the linking time noticeably increases.
Removing that option shortens the linking time for me without any
side effect.
This is a sed command you can use to modify configure in order to
avoid "-Wl,--export-all-symbols" in LDFLAGS:
sed '
# Omit -Wl,--export-all-symbols in LDFLAGS
/LDFLAGS=\"\$LDFLAGS
\$WIN32_LD_EXPORT_ALL_SYMBOLS\"/s/LDFLAGS/true\t\#LDFLAGS/' \
./configure > ./configure-new
Wouldn't it be better to integrate that fix in the m4 macros? If in
there that is...
Perhaps... But I am not going to propose that, as I have to save
energy for other battles... ;-)
Well, if it can help the production of lyx dynamically linked with Qt3
that would be great because as it is now the linking time is close to
unbearable. I'll try to test if there's any improvement.
Abdel.
Then, I don't know if this flag is going to help when dynamically
linking Qt, as I must link statically to it. For sure it doesn't
help when dinamically linking the X11 libs or any other library
(I just finished successfully building an X11 version of LyX/Cygwin
without that option and dynamically linking to libAiksaurus,
libaspell, libiconv, libXrandr, libXcursor, libXft, libXrender,
libfontconfig, libfreetype, libexpat, libXext, libSM, libICE,
libX11: The gain in linking time is awesome).