Airblader / xedgewarp

Effortlessly move your cursor across monitors of different resolutions and alignments
MIT License
39 stars 5 forks source link

build: Add -fcommon for GCC 10 compatibility #45

Closed cdown closed 2 years ago

cdown commented 2 years ago

GCC 10 defaults to -fno-common, which rejects multiple definitions of global variables, resulting in this for outputs_head:

/usr/sbin/ld: obj/extensions.o:(.bss+0x0): multiple definition of `outputs_head'; obj/event.o:(.bss+0x0): first defined here
/usr/sbin/ld: obj/fake_outputs.o:(.bss+0x0): multiple definition of `outputs_head'; obj/event.o:(.bss+0x0): first defined here
/usr/sbin/ld: obj/pointer.o:(.bss+0x0): multiple definition of `outputs_head'; obj/event.o:(.bss+0x0): first defined here
[...and so on...]

Use -fcommon to go back to the previous behaviour.