kenorb-contrib / tg

`telegram-cli` for Telegram IM
https://github.com/telegramdesktop/tdesktop
GNU General Public License v2.0
382 stars 52 forks source link

tg: fix build on gcc-10 (-fno-common) #61

Closed trofi closed 1 year ago

trofi commented 2 years ago

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

As a result build fails as:

ld: objs/loop.o:/build/tg/loop.c:77: multiple definition of
  `verbosity'; objs/main.o:/build/tg/main.c:93: first defined here