Comment 2 for bug 1192613

Revision history for this message
Alexander Lelyakin (alexander-lelyakin) wrote :

One more: As far as I have understand starting with some gcc version
gcc uses "--as-needed" option when calling linker.
As a result following line from file hypre-2.8.0b/debian/patches/shlibs-interlink.patch:
===========
+ ${BUILD_CC_SHARED} -o ${SONAME} ${LIBS_HYPRE} ${SOLIBS} ${SHARED_SET_SONAME}${SONAME} ${SHARED_OPTIONS}
===========
create just empty library.

This line can be corrected by placing "-Wl,--no-as-needed" in it. For example:
=============
+ ${BUILD_CC_SHARED} -o ${SONAME} -Wl,--no-as-needed ${LIBS_HYPRE} ${SOLIBS} ${SHARED_SET_SONAME}${SONAME} ${SHARED_OPTIONS}
============
However I think that previous solution with linker script is much more convenient.

Now the question is: do anybody read all these comments at all?