aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 9d8730b..8fe52db 100755
--- a/build.sh
+++ b/build.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-cc=tcc
-cflags=(-Wall -Wextra -O2)
+cc=gcc
+cflags=(-Wall -Wextra -std=c99 -O2)
ldflags=(-lm)
platform=gl
@@ -32,7 +32,7 @@ fi
[ ! -z "$debug" ] && cflags+=(-g -ggdb -rdynamic)
-teensy_cflags=(${cflags[@]} -Iteensy -Iplatform/$platform)
+teensy_cflags=(${cflags[@]} -fPIC -Iteensy -Iplatform/$platform)
[ ! -z "$debug" ] && teensy_cflags+=(-DTEENSY_DEBUG)
teensy_ldflags=(${ldflags[@]})