From 8cad1ae39e7d11a6c00bc180745bd2e83ee44944 Mon Sep 17 00:00:00 2001 From: circuit10 Date: Sat, 12 Aug 2023 01:22:23 +0100 Subject: [PATCH] Add -fno-strict-aliasing By default libsm64 is compiled with no optimisation so this doesn't matter, but if people want optimisation this stops it from breaking --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3419e3f..a9fe7f2 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ else CXX := c++ LDFLAGS := -lm -shared endif -CFLAGS := -g -Wall -Wno-unused-function -fPIC -fvisibility=hidden -DSM64_LIB_EXPORT -DGBI_FLOATS -DVERSION_US -DNO_SEGMENTED_MEMORY +CFLAGS := -fno-strict-aliasing -g -Wall -Wno-unused-function -fPIC -fvisibility=hidden -DSM64_LIB_EXPORT -DGBI_FLOATS -DVERSION_US -DNO_SEGMENTED_MEMORY SRC_DIRS := src src/decomp src/decomp/engine src/decomp/include/PR src/decomp/game src/decomp/pc src/decomp/pc/audio src/decomp/mario src/decomp/tools src/decomp/audio BUILD_DIR := build