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?
One more: As far as I have understand starting with some gcc version 8.0b/debian/ patches/ shlibs- interlink. patch: SET_SONAME} ${SONAME} ${SHARED_OPTIONS}
gcc uses "--as-needed" option when calling linker.
As a result following line from file hypre-2.
===========
+ ${BUILD_CC_SHARED} -o ${SONAME} ${LIBS_HYPRE} ${SOLIBS} ${SHARED_
===========
create just empty library.
This line can be corrected by placing "-Wl,-- no-as-needed" in it. For example: SET_SONAME} ${SONAME} ${SHARED_OPTIONS}
=============
+ ${BUILD_CC_SHARED} -o ${SONAME} -Wl,--no-as-needed ${LIBS_HYPRE} ${SOLIBS} ${SHARED_
============
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?