X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=d5a72b66f5a5a829c98ca7270687e26a1a906c06;hp=b975522704447da17b150b694c92d9ad7333a2e5;hb=0973cc2ef63060294f790803e0525b66ee91dfee;hpb=53ce6ce49c024631c1bd788e10507bdb4f76eb70 diff --git a/src/Makefile b/src/Makefile index b9755227..d5a72b66 100644 --- a/src/Makefile +++ b/src/Makefile @@ -25,8 +25,11 @@ EXE = stockfish ### ========================================================================== ### Compiler speed switches for both GCC and ICC. These settings are generally ### fast on a broad range of systems, but may be changed experimentally +### +### NOTE: Some versions of gcc miscompile value.h with -O2 or -O3, this is the +### safe setup, try changing to -O3 or -O2 and verify it works for you. ### ========================================================================== -GCCFLAGS = -O3 -msse +GCCFLAGS = -O1 -msse ICCFLAGS = -fast -msse ICCFLAGS-OSX = -fast -mdynamic-no-pic @@ -40,11 +43,11 @@ ICCFLAGS-OSX += -DNDEBUG ### ========================================================================== -### Enable/disable compile for a big-endian CPU, disabled by default +### Remove below comments to compile for a big-endian machine ### ========================================================================== -GCCFLAGS += -DNBIGENDIAN -ICCFLAGS += -DNBIGENDIAN -ICCFLAGS-OSX += -DNBIGENDIAN +#GCCFLAGS += -DBIGENDIAN +#ICCFLAGS += -DBIGENDIAN +#ICCFLAGS-OSX += -DBIGENDIAN ### ==========================================================================