Link to -latomic everywhere or just on platforms that need it?
petterreinholdtsen opened this issue · 3 comments
petterreinholdtsen commented
Hi. I just noticed from https://buildd.debian.org/status/package.php?p=btfs how this program fail to build on a few architectures where -latomic is needed for some atomic operations the compiler do not handle natively. Please have a look at adjusting the build system to link with -latomic. It should be safe to do on all platforms.
johang commented
Thanks for reporting this. I agree -- it should be safe on all platforms.
johang commented
It seems -latomic is not safe on all platforms. MacOS is weird. I'll find a better solution.