eMail icon indicating copy to clipboard operation
eMail copied to clipboard

email: fix build against gcc-10 (-fno-common)

Open trofi opened this issue 2 years ago • 0 comments

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

As a result build fails as:

ld: utils.o:include/email.h:81: multiple definition of `Mopts'; email.o:include/email.h:81: first defined here
ld: utils.o:include/email.h:64: multiple definition of `table'; email.o:include/email.h:64: first defined here
ld: utils.o:include/email.h:65: multiple definition of `conf_file'; email.o:include/email.h:65: first defined here

The change moves globals definitions from include/email.h files to src/email.c.

trofi avatar May 21 '22 08:05 trofi