danielgtaylor / jpeg-archive

Utilities for archiving JPEGs for long term storage.
1.17k stars 121 forks source link

Fix for GCC 10 - avoid multiple definitions of variables (util.h) #128

Open sourcejedi opened 2 years ago

sourcejedi commented 2 years ago

Fixes #119

/usr/bin/ld: src/util.o:(.data+0x0): multiple definition of VERSION'; /tmp/ccSwNFWH.o:(.bss+0x28): first defined here /usr/bin/ld: src/util.o:(.bss+0x0): multiple definition ofprogname'; /tmp/ccSwNFWH.o:(.bss+0x20): first defined here collect2: error: ld returned 1 exit status

gdarko commented 1 year ago

I tested this and can confirm this works on the newer distros that use GCC 10 or above.

@danielgtaylor - hopefully this can be merged