Replies: 3 comments 9 replies
-
Meson automatically detects whether rpath is needed using the following conditions:
So, this should not be happening if you don't use shared libraries... |
Beta Was this translation helpful? Give feedback.
-
It is common with a Linux cross compiler, not with arm-none-eabi. It can generate shared libraries too, but I don't know of any embedded framework able to load them.
Ah, sure, I'm not suggesting this, I'm only trying to fix bare-metal cross builds.
Sure, I'll update the GitHub projects and you'll be able to run the builds on any machine. It'll take me 1-2 more days to fix the small remaining details, I'll let you know when ready. |
Beta Was this translation helpful? Give feedback.
-
Based on your sample project, I believe I understand the problem. In https://github.com/micro-os-plus/diag-trace-xpack/blob/xpack/tests/platform-qemu-mps2-an386/meson/cross.ini you specify: [built-in options]
# ...
layout = 'flat' # 'mirror' This will emit a warning on current versions of Meson:
The official recommendation about this option is "it is broken. Do not use it. Don't expect bugs to be fixed in it". May I ask why you wanted to use layout=flat? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I finally managed to pass the first link of my embedded project using meson, which is good, since I was not sure it is possible. :-)
However, I noticed that the linker command included two
rpath
related options:I know that
rpath
is a great mechanism when building Linux binaries, but in the context of bare-metal embedded applications, shared libraries are not used, applications are flashed to the MCUs and in generalrpath
makes no sense.I searched for mentions of
rpath
in the web pages, but I did not identify many options to control when it is used.Is there any option, preferably at toolchain level, to disable the use of
rpath
?Beta Was this translation helpful? Give feedback.
All reactions