From aae4909d30ce064f7e6f56159c72400a0c2eacb1 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 21 Apr 2024 02:38:22 +0100 Subject: [PATCH] Add libraries in compile script --- compile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compile b/compile index dc44cd8..31a4a64 100755 --- a/compile +++ b/compile @@ -9,6 +9,9 @@ INCLUDES="\ -Iintern/wizapp/dstr/include \ $(find intern/wizapp/mem/include -type d | xargs -I{} echo -n "-I{} ") \ " +LIBS="\ + -lm \ +" SRC="\ ./src/*.c \ intern/wizapp/cpath/src/*.c \ @@ -17,4 +20,4 @@ SRC="\ " OUT=tiffread -( set -x ; $CC $CFLAGS $INCLUDES $SRC -o $OUT ) +( set -x ; $CC $CFLAGS $INCLUDES $LIBS $SRC -o $OUT )