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 <slawomir.jankowski@intel.com>
This commit is contained in:
Slawomir Jankowski 2021-02-09 10:54:11 +01:00
parent b920113ad5
commit e35b8dd12f

View File

@ -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 " $@