-lm flag to cc to compile math.h headers

This commit is contained in:
Maximus Magnus 2021-11-10 15:45:46 +05:30 committed by GitHub
parent 2ddfa7ab0f
commit e2174de5ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ textype() { \
case "$ext" in
# Try to keep these cases in alphabetical order.
[0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;;
c) cc "$file" -o "$base" && "$base" ;;
c) cc "$file" -o "$base" -lm && "$base" ;;
cpp) g++ "$file" -o "$base" && "$base" ;;
cs) mcs "$file" && mono "$base".exe ;;
go) go run "$file" ;;