/usr/local/lib/libsvg-cairo.so does link to libm.so but /usr/bin/ld.lld for some reason complains about atan2. Explicitly set libm.so fixes this error.