bindings: cxx: link using the libtool archives
authororbea <orbea@riseup.net>
Wed, 20 Mar 2024 13:49:57 +0000 (06:49 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 20 Mar 2024 16:44:14 +0000 (17:44 +0100)
commitb10af6b0173e647b54834edff087a5811b6bcfe1
treeb85c094ba52a7b7004cc7ed579784d56eba64d3c
parent0c753417de1d707588e96619a4e42bb261f1418a
bindings: cxx: link using the libtool archives

When linking with internal dependencies that were built with libtool the
most reliable method is to use the libtool archive (.la) files.

When building with slibtool it fails when it doesn't find the -lgpiod
linker flag, but if libgpiod is already installed to the system it will
be built using the system version instead of the newly built libraries.

Link: https://bugs.gentoo.org/913899
Signed-off-by: orbea <orbea@riseup.net>
[Bartosz: fix a typo in tests Makefile]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/cxx/Makefile.am
bindings/cxx/examples/Makefile.am
bindings/cxx/tests/Makefile.am