%  /usr/libexec/gcc/i586-mingw32msvc/4.2.1-sjlj/collect2 --shared -Bdynamic -e _DllMainCRTStartup@12 --enable-auto-image-base -o chessclock.elf /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib/dllcrt2.o /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/crtbegin.o -L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj -L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj -L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib chessclock.o plugin_crt0.o libplugin.a -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/crtend.o
plugin_crt0.o: In function `atexit':
/media/bordel/rockbox/apps/plugins/plugin_crt0.c:41: multiple definition of `_atexit'
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib/dllcrt2.o:/build/buildd/mingw32-runtime-3.15.2/build_dir/src/mingwrt-3.15.2-mingw32/dllcrt1.c:161: first defined here
collect2: ld returned 1 exit status