luvit/luvit — pull request #179 by hasufell (2012-03-29 19:16:18+00:00)
Title: split and reorder flag

Split LDFLAGS/LIBS and CPPFLAGS/CFLAGS and don't overwrite user LDFLAGS.

Sometimes LDFLAGS get ignored when put after the libraries, so it's better to split them up in LDFLAGS and LIBS.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347650

In line 31, 33, 36 all environment/user LDFLAGS are overwritten which is bad. "as-needed" made problems on my setup so I filtered the flag out. That should be handled by the user OR we create a more complex build system.
People using "--as-needed" probably know about it's problems.