[Linking]
/usr/bin/avr-ld: cannot find -ldl
nim compiler implies linking against libdl but AVR don't need that library. With workaround, I can cross compile with --compileOnly option and then avr-gcc. Is there any way let nim compile it imediately?
By the way, What is panicoverride.nim actually for?
Try adding this in your .cfg file.
gcc.options.linker = "-static"
gcc.options.linker = "-static"
It succeeds. Thanks for help.
But I'm not sure why. I guess that it figured out it didn't need libdl when it resolve libdl statically.