In Makefile, the rule that builds the program should use $(LDFLAGS).