Currently, autoconf projects which build shared libraries often need to be patched to use the Genode-specific linker options, because the LDFLAGS variable is often only considered for applications. Some autoconf projects like vim, less or gcc don't consider LDFLAGS or LIBS at some places even for applications. An alternative to patching the source code at the relevant locations could be to pass the linker options in a GCC spec file [1] which supports the distinction between shared and non-shared link output types.
[1] https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html
Currently, autoconf projects which build shared libraries often need to be patched to use the Genode-specific linker options, because the LDFLAGS variable is often only considered for applications. Some autoconf projects like vim, less or gcc don't consider LDFLAGS or LIBS at some places even for applications. An alternative to patching the source code at the relevant locations could be to pass the linker options in a GCC spec file [1] which supports the distinction between shared and non-shared link output types.
[1] https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html