babeltrace
babeltrace copied to clipboard
Fix the build with slibtool
gentoo bug: https://bugs.gentoo.org/777444
Note:
- This PR is based against the
stable-1.5branch. - The current
masterbranch is not affected. - Gentoo still ships Babletrace 1 and does not yet have Babletrace 2. I have no knowledge when this will change.
The Babeltrace 1 build fails when using slibtool (https://dev.midipix.org/cross/slibtool) instead of GNU libtool with many multiple definition warnings. This appears to be a case of overlinking and can be solved by cleaning up the .la dependencies for the build. Slibtool is more sensitive to user error while GNU libtool will silently hide some of the worst bugs which is how this goes unnoticed. With this patch it now works with both slibtool and GNU libtool on my system. I am not sure if you wish to carry this patch too, but I am sharing it in case you find it valuable.