From: Michael Vrable Date: Thu, 31 May 2012 03:18:27 +0000 (-0700) Subject: Put linker flags at end of compiler command-line. X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=commitdiff_plain;h=96894619b609626621a05b87638b40cdc7dbfe37 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. --- 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