From f5f4d69ba392e6216fde8dfd4ae0869f560939bb Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 11 Dec 2016 19:52:07 -0500 Subject: [PATCH] lib: In 2016, Ubuntu still insists on topologically sorted libraries while linking This fixes builds on Ubuntu Server 16.04. Fixes: https://github.com/Zygo/bees/issues/8 --- lib/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 5a93cff..03be540 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -18,8 +18,6 @@ OBJS = \ include ../makeflags -LDFLAGS = -shared -luuid - depends.mk: *.c *.cc for x in *.c; do $(CC) $(CFLAGS) -M "$$x"; done > depends.mk.new for x in *.cc; do $(CXX) $(CXXFLAGS) -M "$$x"; done >> depends.mk.new @@ -34,4 +32,4 @@ depends.mk: *.c *.cc $(CXX) $(CXXFLAGS) -o $@ -c $< libcrucible.so: $(OBJS) Makefile - $(CXX) $(LDFLAGS) -o $@ $(OBJS) + $(CXX) $(LDFLAGS) -o $@ $(OBJS) -shared -luuid