libpng gives linker errors if you try to compile with -Wl,--as-needed. This patch fixes it.
Created attachment 75380 [details, diff] fix for --as-needed breakage
libpng uses functions in libm
??? That's why I explicitly link to libm...
no, you remove the libpng.so linking to libm.so
Well, if you look *closely* at the patch and perhaps the Makefile, you'd see you are wrong, I just change the position. Don't get confused by the first line. Hrrmm.
Comment on attachment 75380 [details, diff] fix for --as-needed breakage your patch does just move the -lm usage, however it's still wrong you didnt fix the real issue
fixed properly in cvs, thanks for the bug report