Inherited autotools code. I change it only if i see a reason.
> I don't understand your second question.
When i test whether the option is supported by the linker, i do
this by applying it to a non-library binary.
AC_TRY_LINK() creates a tiny C program and links it using $LDFLAGS.
If it fails, vers_libs_test becomes "no" and --version-script= will
not be used.
The question is, whether this test actually has to try linking a
tiny library.
> why do executables need to be linked with --version-script at all?
Of course they should not. I will adopt your change upstream.
> what is the motivation to keep it? ;)
Inherited autotools code. I change it only if i see a reason.
> I don't understand your second question.
When i test whether the option is supported by the linker, i do
this by applying it to a non-library binary.
AC_TRY_LINK() creates a tiny C program and links it using $LDFLAGS.
If it fails, vers_libs_test becomes "no" and --version-script= will
not be used.
The question is, whether this test actually has to try linking a
tiny library.
> why do executables need to be linked with --version-script at all?
Of course they should not. I will adopt your change upstream.