Tell the compiler we don't check errno when calling math.h functions (work around a C stdlib design flaw)

This commit is contained in:
fincs 2020-07-10 13:22:33 +02:00
parent f4367ad55d
commit 05e8039b7f
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -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