Well, the LDFLAGS is forcing the linker to search the Standard C++ library in addition to any other libraries it may be searching. The fact that this application apparently needs something in the Standard C++ library but doesn't search it by default may be an indication that the Makefile is busted (as bthylafh indicated).