Skip to content

fix build on gcc-10 (-fno-common)#22

Open
trofi wants to merge 1 commit into
karulont:masterfrom
trofi:fix-gcc-10-build
Open

fix build on gcc-10 (-fno-common)#22
trofi wants to merge 1 commit into
karulont:masterfrom
trofi:fix-gcc-10-build

Conversation

@trofi
Copy link
Copy Markdown

@trofi trofi commented May 15, 2022

gcc-10 changed the default from -fcommon to fno-common:
https://gcc.gnu.org/PR85678

As a result build fails as:

ld: i3lock-unlock_indicator.o:(.bss+0xc): multiple definition of
  `input_position'; i3lock-i3lock.o:(.bss+0x3c): first defined here

The change turned one of definitions into declaration.

gcc-10 changed the default from -fcommon to fno-common:
  https://gcc.gnu.org/PR85678

As a result build fails as:

    ld: i3lock-unlock_indicator.o:(.bss+0xc): multiple definition of
      `input_position'; i3lock-i3lock.o:(.bss+0x3c): first defined here

The change turned one of definitions into declaration.
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.

1 participant