-
Notifications
You must be signed in to change notification settings - Fork 100
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
Export -latomic even if BUILD_TESTING is disabled #384
base: rolling
Are you sure you want to change the base?
Conversation
Signed-off-by: Timo Röhling <[email protected]>
@roehling thanks for the PR, can you explain more details why we need this and what the actual problem you have? i think that would make it easier to understand for everyone. |
The atomic operations are used by |
@roehling appreciate the explanation.
is this because of the following? if that so, probably getting rid of unnecessary dependency would be solution? rcutils/include/rcutils/error_handling.h Line 39 in 9cf42fb
and, this should be no problem, since it includes only when it is test build. rcutils/include/rcutils/macros.h Lines 145 to 146 in 9cf42fb
thanks, |
No, it is not. It is because Line 74 in 9cf42fb
And said file then uses I guess, if you wanted to avoid the unconditional dependency on the I believe my PR is less intrusive, as GCC normally adds |
yeah right, currently it include this header, e.g)
agree. |
@clalancette could you take a look? |
I just ran into this problem while cross-compiling to armv6, and came up with pretty much the same solution. I did find that the |
On some architectures, libatomic is needed and should not be dependent on tests being enabled.