diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:26:32 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:37:04 +0200 |
commit | b6b3760e19716c574ca9a0ec0bacfe5518b39f77 (patch) | |
tree | 76c2c04069d22d36550a62e4b5bb7878fcefb4fd /build.sh | |
parent | 203fbb778e9cfe3aff8b4dee6da9a103a171ca0e (diff) |
load function in progress
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |