aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-25 14:26:32 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:37:04 +0200
commitb6b3760e19716c574ca9a0ec0bacfe5518b39f77 (patch)
tree76c2c04069d22d36550a62e4b5bb7878fcefb4fd /build.sh
parent203fbb778e9cfe3aff8b4dee6da9a103a171ca0e (diff)
load function in progress
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