commit | 53a6981886c849d4ad9a71435ad027e5017f1bc6 | [log] [tgz] |
---|---|---|
author | akil <akil@nanotek.info> | Wed Nov 25 05:24:10 2020 +0400 |
committer | GitHub <noreply@github.com> | Tue Nov 24 17:24:10 2020 -0800 |
tree | 5f19dd1f67718cb49b4557c9fa4e55eb5f3dfefd | |
parent | ddebabe7d5b7432f3b1f52c132e3f2402256f5ed [diff] [blame] |
add link with -lm (#60)
diff --git a/Makefile b/Makefile index 1f9b580..b664993 100644 --- a/Makefile +++ b/Makefile
@@ -10,6 +10,7 @@ CC=cc #CC=/usr/local/bin/gcc-9 +LIBS=-lm CFLAGS=$(CMD_LINE) -I inc -I test -Os -fPIC # The following are used before a release of QCBOR help to make sure @@ -31,7 +32,7 @@ so: libqcbor.so qcbortest: libqcbor.a $(TEST_OBJ) cmd_line_main.o - $(CC) -o $@ $^ libqcbor.a + $(CC) -o $@ $(LIBS) $^ libqcbor.a libqcbor.a: $(QCBOR_OBJ) ar -r $@ $^