summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorRay <[email protected]>2018-02-25 00:04:50 +0100
committerGitHub <[email protected]>2018-02-25 00:04:50 +0100
commitc5f78636898d3f988cecc0bf876763252c484317 (patch)
treebdf0709f9a75a25a805845997b0e356b6580bcfd /src/Makefile
parent6026ed61a5eaa43df4b2a91c8c47c8f2661d47de (diff)
parent1430d0190684c6f78e1bce759eae240c94fba61c (diff)
downloadraylib-c5f78636898d3f988cecc0bf876763252c484317.tar.gz
raylib-c5f78636898d3f988cecc0bf876763252c484317.zip
Merge pull request #492 from a3f/raylib-master
jar_xm: Workaround for unaligned pointer accesses
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index e001b4ef..53551174 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -291,7 +291,9 @@ endif
# -Wno-missing-braces ignore invalid warning (GCC bug 53119)
# -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
# -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers
-CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith
+# -fno-strict-aliasing jar_xm.h does shady stuff (breaks strict aliasing)
+CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith
+-fno-strict-aliasing
ifeq ($(RAYLIB_BUILD_MODE), DEBUG)
CFLAGS += -g