Skip to content

Unbreak build with Clang - #25

Open
jbeich wants to merge 1 commit into
hyprwm:mainfrom
jbeich:clang
Open

Unbreak build with Clang#25
jbeich wants to merge 1 commit into
hyprwm:mainfrom
jbeich:clang

Conversation

@jbeich

@jbeich jbeich commented May 8, 2023

Copy link
Copy Markdown
Contributor

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

Only Gold and LLD implement --no-gnu-unique but Makefile is too
primitive to figure out which toolchain is used by default.
@jbeich jbeich mentioned this pull request May 8, 2023
@vaxerski

vaxerski commented May 9, 2023

Copy link
Copy Markdown
Member

the issue is that without no gnu unique reloading (unloading, then loading) a plugin does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants