add -lm for log10