Put $(LDFLAGS) after the list of object files.

Some linkers on some systems are particularly picky about the order of
arguments in order to properly linkt. So this fixes failures on some
systems.
This commit is contained in:
Peter Wang 2009-11-19 19:13:35 +11:00 committed by Carl Worth
parent 3f52f59c1e
commit ddac17343a
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ notmuch_client_srcs = \
notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
notmuch: $(notmuch_client_modules) lib/notmuch.a
$(CXX) $(LDFLAGS) $^ -o $@
$(CXX) $^ $(LDFLAGS) -o $@
notmuch.1.gz: notmuch.1
gzip --stdout notmuch.1 > notmuch.1.gz

View file

@ -50,7 +50,7 @@ _notmuch()
commands="setup new search show reply tag dump restore help"
help_options="setup new search show reply tag dump restore search-terms"
search_options="--max-threads= --first= --sort="
search_options="--max-threads= --first= --sort=oldest-first --sort=newest-first"
COMPREPLY=()