Use LDLIBS instead of haxxing LDFLAGS