From 05e8039b7f987b16942cf47f078c30c5926abd3d Mon Sep 17 00:00:00 2001 From: fincs Date: Fri, 10 Jul 2020 13:22:33 +0200 Subject: [PATCH] Tell the compiler we don't check errno when calling math.h functions (work around a C stdlib design flaw) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 449b208..34e8cd4 100644 --- a/Makefile +++ b/Makefile @@ -114,7 +114,7 @@ debug: lib/libcitro3d.a : lib release $(SOURCES) $(INCLUDES) @$(MAKE) BUILD=release OUTPUT=$(CURDIR)/$@ \ - BUILD_CFLAGS="-DNDEBUG=1 -O2 -fomit-frame-pointer" \ + BUILD_CFLAGS="-DNDEBUG=1 -O2 -fomit-frame-pointer -fno-math-errno" \ DEPSDIR=$(CURDIR)/release \ --no-print-directory -C release \ -f $(CURDIR)/Makefile