From bfaeb4bc93d1298d97a166dfec900e407f77e6e1 Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Wed, 20 Jan 2010 00:04:56 +0100 Subject: [PATCH 1/3] Use the correct macro name to parametrize make's standard rule To add libraries to be linked, the 'LDLIBS' is the correct macro name. 'LDFAGS' is for paths etc. Make's standard rule to compile a C file into an executable is: $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< $(LDLIBS) -o $@ Signed-off-by: Juergen Beisert --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index ceed367..3ab9206 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ CFLAGS += -DENABLE_DEBUG CFLAGS += -DENABLE_REPLAY # CFLAGS += -DUSE_OBSOLETE_GETTIMEOFDAY -LDFLAGS += -lrt +LDLIBS += -lrt all: ntpclient -- 1.6.6