aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 144ae2f..ce704cb 100755
--- a/build.sh
+++ b/build.sh
@@ -23,7 +23,7 @@ else
fi
if [ -z "$CC" ]; then
- CC=cc
+ CC=gcc
fi
CFLAGS="-Wall -Wextra -Werror -Wno-format-security -Wno-error=attributes -Wno-attributes -Wnull-dereference -std=c89 -D_GNU_SOURCE"
@@ -81,6 +81,9 @@ build_test() {
build_release() {
CFLAGS="$CFLAGS -O2 -DNDEBUG -s"
+ # TODO: -static -flto
+ # LIBS="-static $LIBS" also remove below -shared -fPIC
+ # CFLAGS="$CFLAGS -flto"
BUILD_ARGS="$source_files $CFLAGS $LIBS -shared -fPIC -o libamalgam.so"
set -x