Skip to content

Commit 05e8039

Browse files
committed
Tell the compiler we don't check errno when calling math.h functions (work around a C stdlib design flaw)
1 parent f4367ad commit 05e8039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ debug:
114114

115115
lib/libcitro3d.a : lib release $(SOURCES) $(INCLUDES)
116116
@$(MAKE) BUILD=release OUTPUT=$(CURDIR)/$@ \
117-
BUILD_CFLAGS="-DNDEBUG=1 -O2 -fomit-frame-pointer" \
117+
BUILD_CFLAGS="-DNDEBUG=1 -O2 -fomit-frame-pointer -fno-math-errno" \
118118
DEPSDIR=$(CURDIR)/release \
119119
--no-print-directory -C release \
120120
-f $(CURDIR)/Makefile

0 commit comments

Comments
 (0)