Menu

#3 [patch] fix gcc-10 build )-fno-common

v1.0_(example)
open
nobody
None
5
2022-05-12
2022-05-12
No

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

As a result build fails as:

ld: /build/cct3qrT9.o:(.bss+0x0): multiple definition of `handle'; /build/cc4dJNO8.o:(.bss+0x0): first defined here
ld: /build/cct3qrT9.o:(.bss+0x8): multiple definition of `cdprs'; /build/cc4dJNO8.o:(.bss+0x8): first defined here
ld: /build/cct3qrT9.o:(.bss+0xc): multiple definition of `timeout'; /build/cc4dJNO8.o:(.bss+0xc): first defined here
ld: /build/ccbaP0xb.o:(.bss+0x0): multiple definition of `handle'; /build/cc4dJNO8.o:(.bss+0x0): first defined here
ld: /build/ccbaP0xb.o:(.bss+0x8): multiple definition of `cdprs'; /build/cc4dJNO8.o:(.bss+0x8): first defined here
ld: /build/ccbaP0xb.o:(.bss+0xc): multiple definition of `timeout'; /build/cc4dJNO8.o:(.bss+0xc): first defined herOAe

The attached change moves variable definitions to .c files.

1 Attachments

Discussion


Log in to post a comment.