driver list: use dynamic linking from automake build rules
commit5b04ad92bc2116348d8d87b9dfe9713c5ae39c1c
authorGerhard Sittig <gerhard.sittig@gmx.net>
Tue, 9 May 2023 20:06:06 +0000 (9 22:06 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Tue, 9 May 2023 20:27:08 +0000 (9 22:27 +0200)
tree6e6a6943985b80ccbe354f139cbd2b5f9cc5326c
parentab76a692387a342d22bd08d6a1818610186518ba
driver list: use dynamic linking from automake build rules

Adjust the Makefile.am to dynamically link the "sigrok library" to the
application executable. Static linking fails because the linker script
provided start symbol for the drivers list is missing in the static .a
library.

One way of unbreaking the static build could be to provide a weak symbol
for the list start, though that would again be compiler specific. But it
would not unbreak the execution either, because the start of the driver
list section for static linking is still unknown. Which strenghens the
suspicion that the link time approach is less portable and reliable than
the constructors are.
Makefile.am