hyprland-plugins
hyprland-plugins copied to clipboard
Unbreak build with Clang
Only Gold and LLD support --no-gnu-unique. GCC defaults to -fuse-ld=bfd, so --no-gnu-unique is discarded unless GCC itself was built with --disable-gnu-unique-object. Clang doesn't have such magic, so --no-gnu-unique fails because it's not supported by the compiler unlike -Wl,--no-gnu-unique which is passed to the linker and works fine with -fuse-ld=gold, -fuse-ld=lld or when /usr/bin/ld is Gold/LLD.
Also, Meson support in hyprbars doesn't try to pass --no-gnu-unique
the issue is that without no gnu unique reloading (unloading, then loading) a plugin does not work.