From 7140901261fb339bf5b33540eaab79d6eb0eaae0 Mon Sep 17 00:00:00 2001 From: David Mak Date: Wed, 4 Oct 2023 11:24:09 +0800 Subject: [PATCH] standalone: Fix missing libraries when linking Fixes `undefined reference to 'pow'` for pow.py using -O0. --- nac3standalone/demo/run_demo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3standalone/demo/run_demo.sh b/nac3standalone/demo/run_demo.sh index cffa79e51..8ba1095c0 100755 --- a/nac3standalone/demo/run_demo.sh +++ b/nac3standalone/demo/run_demo.sh @@ -18,5 +18,5 @@ rm -f "*.o" demo $nac3standalone "$@" clang -c -std=gnu11 -Wall -Wextra -O3 -o demo.o demo.c -clang -o demo module.o demo.o +clang -lm -o demo module.o demo.o ./demo