From e35b8dd12f31835867ff216c7127aaee0754f697 Mon Sep 17 00:00:00 2001 From: Slawomir Jankowski Date: Tue, 9 Feb 2021 10:54:11 +0100 Subject: [PATCH] Fix for building OpenCAS On some systems, e.g. Ubuntu, the order of linking `math` library is important and when linking is done too early, openCAS making fails. Signed-off-by: Slawomir Jankowski --- casadm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/casadm/Makefile b/casadm/Makefile index 022941a..eac2cc1 100644 --- a/casadm/Makefile +++ b/casadm/Makefile @@ -101,7 +101,7 @@ sync: # $(TARGET): $(TARGET).a @echo " LD " $@ - @$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $< + @$(CC) $(CFLAGS) -o $(TARGET) $< $(LDFLAGS) $(TARGET).a: $(patsubst %,$(OBJDIR)%,$(OBJS)) @echo " AR " $@