Using `LDFLAGS` is a last resort helper. If you use it in your makefiles, this is a good method to make your software non-portable.
Better write Makefiles that directly use the needed `ld` command line.
You could e.g. use command lines like:
$(CC) $(CFLAGS) $(OBJECTS) -o $@ $(LDPATH:%=-L%) $(LIBRARIES)
and put the list of search directories for the library search into `LDPATH`.
Note that the pattern matching macro expansions as used for `LDPATH` are not part of the POSIX `make` spec, but this feature has been introduced by SunPro Make in 1986 and copied by many make implementations, e.h. `smake`, `gnu make`. If you have a older `make`, you need to manually use a `-Lpath` entry for each library search dir intim the command line.