Why building static library (.a) doesn't give any error and works correctly:
$(LIBRARY): assertion.o
$(AR) $(OUTPUT_STATIC_LIB_DIR)/$(LIBRARY) $(OUTPUT_DIR)/assertion.o
Simultaneously, when building shared library (.so) gives me such error:
$(SHARED_LIBRARY): assertion.o
$(CC) $(CFLAGS) -shared -o $(OUTPUT_LIB_DIR)/$(SHARED_LIBRARY) $(OUTPUT_DIR)/assertion.o
Error message:
Undefined symbols for architecture x86_64:
"_float_cmp_func", referenced from: