Commit 0ecc74b9 authored by Thomas Guillem's avatar Thomas Guillem

build: add an env variable that disable optimizations

parent 35d7aa49
...@@ -337,8 +337,14 @@ fi ...@@ -337,8 +337,14 @@ fi
########## ##########
# CFLAGS # # CFLAGS #
########## ##########
if [ "$NO_OPTIM" = "1" ];
then
CFLAGS="-g -O0"
else
CFLAGS="-g -O2"
fi
CFLAGS="-g -O2 -fstrict-aliasing -funsafe-math-optimizations" CFLAGS="${CFLAGS} -fstrict-aliasing -funsafe-math-optimizations"
if [ -n "$HAVE_ARM" -a ! -n "$HAVE_64" ]; then if [ -n "$HAVE_ARM" -a ! -n "$HAVE_64" ]; then
CFLAGS="${CFLAGS} -mlong-calls" CFLAGS="${CFLAGS} -mlong-calls"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment