-# Optimisation options
-CFLAGS+=-O3
+-
+-# Fast maths option - makes test cases fail slightly
-CFLAGS+=-ffast-math
+-ifdef FASTMATHS
+- ifeq ($(FASTMATHS),0)
+- CFLAGS+=-fno-fast-math
+- endif
+-endif
-
# Optimisation option (only works if compilation and execution use exactly
the same CPU architecture).
#CFLAGS+=-march=native
-@@ -123,7 +118,7 @@ LDFLAGS_LDSO=-Wl,-R.
+-# Compile with debugging symbols
+-CFLAGS+=-g
+-
+ # Option for compiling with sanitizer for debugging memory addresses and
undefined behaviour
+ ifdef SANITIZE
+ ifeq ($(SANITIZE),1)
+@@ -143,7 +118,7 @@ LDFLAGS_LDSO=-Wl,-R.
# Required for multi-threaded support (comment these two lines out if not
required)
CFLAGS+=-pthread -DUSE_PTHREADS
@@ -59,18 +95,7 @@ index a1cfb24..a7aea84 100644
+LDFLAGS+=-pthread
- ifneq ($(HOST),MINGW)
-@@ -139,8 +134,8 @@ LDFLAGS+=-lz
-
-
- # Required for xz support (uncomment these two lines if required)
--#CFLAGS+=-DUSE_XZ
--#LDFLAGS+=-llzma
-+CFLAGS+=-DUSE_XZ
-+LDFLAGS+=-llzma
-
-
- # Required to use stdio with files > 2GiB on 32-bit system.
+ # Required for bzip2 support (comment these two lines out if not required)
--
-2.18.0
+2.23.0