Repository navigation
drivers: Fix undefined references with slibtool. - #1001
Merged
Merged
Conversation
orbea
force-pushed
the
libtool
branch
2 times, most recently
from
March 27, 2021 21:10
f5eecdf to
0f68370
Compare
Contributor
Author
|
The travis build is revealing cases I missed, I guess I will use travis to find them all. :) |
orbea
force-pushed
the
libtool
branch
6 times, most recently
from
March 27, 2021 22:24
bcd5aa7 to
ddd8a4a
Compare
Contributor
Author
This made me realize there is a much more correct and cleaner way to fix this, now travis passes. |
Signed-off-by: orbea <orbea@riseup.net>
Member
|
Looks quite neat, thanks! I'll check against a few other OSes and looks good to merge if they pass :) |
Member
|
Beside 3 warnings in dstate.c that would be focus of a different PR and certainly not a result of yours, BuildBot on a number of other platforms concurs this is a good change set :) Kudos! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When building the nut drivers with slibtool (https://dev.midipix.org/cross/slibtool) it fails with the same issues in several places.
This is because of two reasons.
main.o,dstate.oandserial.oobject files which does not work as reliably as creating the corresponding.lafiles and linking with those.$(LDADD_COMMON)is missing from many of the driver'sLDADDresulting in undefined references. In a few cases just addinglibcommon.lawas enough.GNU libtool is far more permissive and hides these issues...
Also please see this downstream issue: https://bugs.gentoo.org/778584