From 96894619b609626621a05b87638b40cdc7dbfe37 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 30 May 2012 20:18:27 -0700 Subject: [PATCH] Put linker flags at end of compiler command-line. Put $(LDFLAGS) after the sources, since otherwise the linker may be unable to find all symbols. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3602ea7..8ae5754 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ SRCS=chunk.cc localdb.cc main.cc metadata.cc ref.cc remote.cc sha1.cc \ OBJS=$(SRCS:.cc=.o) cumulus : $(OBJS) - $(CXX) $(LDFLAGS) -o $@ $^ + $(CXX) -o $@ $^ $(LDFLAGS) version : NEWS (git describe || (head -n1 NEWS | cut -d" " -f1)) >version 2>/dev/null -- 2.20.1