BUILD: Fix LDFLAGS vs. LIBS re linking order in various makefiles
Libraries should always be listed last. Should be backported to 1.8.
Signed-off-by: Christian Ruppert <idl0r@qasl.de>
diff --git a/contrib/spoa_example/Makefile b/contrib/spoa_example/Makefile
index d04a01e..c44c2b8 100644
--- a/contrib/spoa_example/Makefile
+++ b/contrib/spoa_example/Makefile
@@ -6,15 +6,14 @@
LD = $(CC)
CFLAGS = -g -O2 -Wall -Werror -pthread
-LDFLAGS = -lpthread -levent -levent_pthreads
INCS += -I../../ebtree -I./include
-LIBS =
+LIBS = -lpthread -levent -levent_pthreads
OBJS = spoa.o
spoa: $(OBJS)
- $(LD) $(LDFLAGS) $(LIBS) -o $@ $^
+ $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
install: spoa
install spoa $(DESTDIR)$(BINDIR)