diff options
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 |