Hi, > It's not that complex.¹ If you use an atomic, you should also be > linking with atomic (i.e. -latomic). This is similar to using > -pthreads if you are using multiple threads, or -lresolv if you use > gethostbyname()
Some upstreams have gone through build system tests to assess whether to build with libatomic or not. Adding -latomic is simpler. I wonder if the build system configure stage test is overkill. To illustrate, that's what I thought was the right fix for transmission[1][2]. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067625 [2] https://github.com/transmission/transmission/pull/6774 Thanks, Alex