standalone: Fix missing libraries when linking

Fixes `undefined reference to 'pow'` for pow.py using -O0.
This commit is contained in:
David Mak 2023-10-04 11:24:09 +08:00
parent 2a775d822e
commit 7140901261
1 changed files with 1 additions and 1 deletions

View File

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