On 2025-01-17 19:43 +0900, Simon Richter wrote: > In my own packages, I check if libatomic exists, and if it does, I > unconditionally link if I use any atomics. I also check if the linker > accepts --push-flags, if it does I generate a > -Wl,--push-flags,--as-needed,-latomic,--pop-flags sequence, if not, the > unconditional link will generate dpkg-shlibdeps warnings about unnecessary > linking on amd64, but that's better than failing on other platforms.
Can you explain why this: -Wl,--push-flags,--as-needed,-latomic,--pop-flags is better than -as-needed,-latomic I thought --as-needed on its own is sufficicent to avoid dpkg-shlibdeps warnings about unnecessary linking (because it only links the things that are needed), so I don't understand the need for the psuh/pop sequence (I must admit that I never knew that existed until your message recently). cheers Wookey -- Principal hats: Debian, Wookware http://wookware.org/
signature.asc
Description: PGP signature