How to use LDFLAGS in makefile
Your linker (ld) obviously doesn’t like the order in which make arranges the GCC arguments so you’ll have to change your Makefile a bit: In the line defining the client target change the order of $(LDFLAGS) as needed.
Your linker (ld) obviously doesn’t like the order in which make arranges the GCC arguments so you’ll have to change your Makefile a bit: In the line defining the client target change the order of $(LDFLAGS) as needed.