-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbacktrace doesn't honor --sysroot at link time when crosscompiling #134
Comments
Exactly how are you building libbacktrace? You must normally set flags like |
I'm building through As I mentioned, I don't have much experience with libtool / autotools. |
I'm sorry, I'm not familiar with conan. Can you tell me precisely how you built the library without conan? Thanks. The version of libtool that the project uses is the same as the one used by GCC, as GCC is the upstream source code for this repo. |
Sure. I first set these env variables
Then configure
And then build
The problem is that at link time, we I don't get the --sysroot flag
If I manually run that step but adding |
I can work around this by changing how I expose the compiler
But this breaks some other libraries. I need an uniform build env for many libraries. |
This project uses a really old version of libtool. The changelog says they added sysroot support on 2.4 (2010) if I read it correctly |
Update:
And re-configured. Now the sysroot is properly set and I can crosscompile.
Would it be possible to update this repo with this? I've no idea what the implications are, as I said, I'm not familiar with this build system. |
I'm trying to cross-compile this lib for arm32
The final link stage fails with
Which is a symptom of the linker not seeing the toolchain's sysroot.
I'm exposing it through the LDFLAGS env variable, but it doesn't affect the build.
I don't know enough about
libtool
to fix it.The text was updated successfully, but these errors were encountered: